$(document).ready(function () {
var dom = $("span"); //From http://www.cnblogs.com/ahjesus Respect the author's hard work, please indicate the source when reprinting, thank you!
$(dom[0]).remove( );
console.log(dom.length) //5
console.log($(dom).length) //5
console.log($("span").length) / /4
console.log($(dom[0]).text()) //A
})
If you use variables to store jquery objects, after deletion, The deleted object still exists in the cache. When further operations are performed, the cached object is cleared.