摘要: appendChild主要是用来追加节点插入到最后;循环的时候由于不停的搬家导致length在改变。 使用for循环【js】appendChild 将Id为ul1的内容插入到ul2里面 1 2 3 4 5 6 ul2 运行效果图: 使用while循环window.onload = function(){ var ul2 = document.getElementById('ul2'); var oli = document.getElementById('ul1').children; while(oli.length){ //alert("form. 阅读全文
posted @ 2013-12-08 15:10 NW_KNIFE 阅读(683) 评论(0) 推荐(0) 编辑