function  qqq() 
        { 
        var  div  =  document.createElement( "div"); 
        document.body.appendChild(div); 
        div.appendChild(document.getElementById( "d1")); 
document.getElementById( "divone").appendChild(div)//======
        alert( "a "); 
        } 

解决方案 »

  1.   

    我现在从后台加载一个table表格到页面,
    如何通过appendChild追加到divone中
     function  qqq() 
            { 
            var  div  =  document.createElement( "div"); 
            document.body.appendChild(div); 
            div.appendChild(document.getElementById( "d1")); 
    document.getElementById( "divone").appendChild(div)//======
            alert( "a "); 
            }