本文实例讲述了jQuery使用empty()方法删除元素及其所有子元素的方法。分享给大家供大家参考。具体实现方法如下:
This is some text in the div. This is a paragraph in the div. This is another paragraph in the div. Empty the div element
This is a paragraph in the div.
This is another paragraph in the div.
希望本文所述对大家的jQuery程序设计有所帮助。