如何通过insertRow()插入行?
<html>
<head>
<script>
function appendTr(){
var to = document.all.item("testTable");
var insertedTr=to.insertRow();//为什么不会显示插入行?
insertedTr.bgColor="efefef";
//....如何添加cells以及其中的数据?
}
</script>
</head>
<body onload="appendTr()">
<table id="testTable">
</table>
</body>
</html>