创建子项

var i=0;
function addChild()
{
var newchild=document.createElement("div");
document.getElementById("di").appendChild(newchild);
newchild.innerText="ok";


}

posted on 2008-05-15 16:35  leanco  阅读(90)  评论(0)    收藏  举报

导航