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

一站式 AI 云服务平台

更多推荐