0
当我将它分配给变量时,detach()方法令人惊讶地从对象中丢失。JQuery元素缺失detach()方法
//assign element to a variable
top = $("#context-menu");
// top.detach is undefined
top.detach();
//this works
$("#context-menu").detach();
这怎么可能?
为什么downvotes人??? – Jones