Remove all the children DOM elements in div

前端 未结 7 2133
萌比男神i
萌比男神i 2020-12-02 08:48

I have the following dojo codes to create a surface graphics element under a div:

....


        
相关标签:
7条回答
  • 2020-12-02 09:47
    while (node.hasChildNodes()) {
        node.removeChild(node.lastChild);
    }
    
    0 讨论(0)
提交回复
热议问题