How to use createElement to create a new table?

前端 未结 2 1439
借酒劲吻你
借酒劲吻你 2020-12-18 05:34

Why the following code doesn\'t work?



    

        
2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-18 06:01

    //_table my current table
    var table = document.createElement('table'); //new table
    table.innerHTML = _table.innerHTML; //clone table innerHTML
    

提交回复
热议问题