Remove all the children DOM elements in div

前端 未结 7 2138
萌比男神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:44

    node.innerHTML = "";
    

    Non-standard, but fast and well supported.

提交回复
热议问题