$.contains($('div.wrap')[0], $('#fdsfafd')[0]);
在Firefox下,如果`$('#fdsfafd')[0]`不存在会导致整个页面的JS锁死,不再会执行任何代码了。