87,989
社区成员
发帖
与我相关
我的任务
分享
<html>
<body onload="CurrentUser.innerText='当前用户:' + parent.document.getElementsByTagName('table')[0].firstChild.firstChild.childNodes[1].innerText">
<h1>子框架-插件</h1>
<p id="CurrentUser"></p>
</body>
</html>
<html>
<script>
window.onload= function(){
var tb = parent.document.getElementsByTagName("table")[0];
document.getElementById("CurrentUser").innerHTML = tb.rows[0].cells[1].innerHTML;
}
</script>
<body>
<h1>子框架-插件</h1>
<p id="CurrentUser"></p>
</body>
</html>