<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body onload="dc">
<script type="text/javascript">
function dc(){
var txt=["第一个节点","第二个节点","第3个节点","第4个节点"];
for(i=0;i=3;i++){
var node=document.createElement("node");
var doc=document.createTextNode(txt[i]);
node.appendChild(doc);
document.appendChild(node);
}
}
</script>
</body>
</html>
MarlboroKay
MarlboroKay
相关分类