jQuery中 detach() 和 remove() 方法的区别是什么?
素颜
素颜 2016-12-20 15:36:18
0
2
995
素颜
素颜

越努力越幸运!!!

reply all(2)
数据分析师

What is the difference between the detach() and remove() methods in jQuery? - PHP Chinese website Q&A - What is the difference between the detach() and remove() methods in jQuery? - PHP Chinese website Q&A

Take a look around and learn .

迷茫

尽管 detach() 和 remove() 方法都被用来移除一个DOM元素, 两者之间的主要不同在于 detach() 会保持对过去被解除元素的跟踪, 因此它可以被取消解除, 而 remove() 方法则会保持过去被移除对象的引用. 你也还可以看看 用来向DOM中添加元素的 appendTo() 方法.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!