jquery删除一个元素时报错: 

$('#div1').remove();

 Failed to execute 'removeChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?

可能是别的地方已销毁了它,改用empty()貌似就ok了

 

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐