求一段显示动态表格的代码! 求一段显示动态表格的代码! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html> <head> <meta http-equiv= "Content-Type" content= "text/html;charset=gb2312"> <title> replaceHref </title> </head> <script language="javascript"> function mb() { var t = document.createElement("table"); t.border = "1"; t.width = "250"; t.height = "35"; var tb = document.createElement("tbody"); t.appendChild(tb) var tr = document.createElement("tr"); tb.appendChild(tr); var td = document.createElement("td"); td.id="td1"; tr.appendChild(td); document.body.appendChild(t); document.getElementById("td1").innerText = "测试"; //document.getElementById("txt").value = document.body.innerHTML; onload="mb()" }</script> <body><a href="javascript:mb()">显示表格</a></body> </html> sql查询问题 字符编码问题? 求解Discuz! 更新点击率的算法问题. php下报错,a onmouseout怎么写规范? 謝謝,關於正則 php update 语句不能修改数据库,也不报错? move_uploaded_file上传的图片文件属性是600,无法访问,请高手指教。 登录用户和管理员才能修改自己的帖子,如何实现? 我的PHP程序在浏览器中显示中文显示的是乱码,何故? 請教一個session的問題. php东拉西扯的居然扯成了一门超过10年的语言 遇到一难处,请高手解答,
<html> <head>
<meta http-equiv= "Content-Type" content= "text/html;charset=gb2312">
<title> replaceHref </title>
</head>
<script language="javascript">
function mb()
{
var t = document.createElement("table");
t.border = "1";
t.width = "250";
t.height = "35";
var tb = document.createElement("tbody");
t.appendChild(tb)
var tr = document.createElement("tr");
tb.appendChild(tr);
var td = document.createElement("td");
td.id="td1";
tr.appendChild(td);
document.body.appendChild(t);
document.getElementById("td1").innerText = "测试";
//document.getElementById("txt").value = document.body.innerHTML; onload="mb()"
}
</script>
<body><a href="javascript:mb()">显示表格</a>
</body> </html>