2015-04-12 106 views

回答

0

不这样做的最好的方式,但它有一个小的性能紧凑,更重要的是,它的工作原理:

var clearDamnSpan = setInterval(function() { 
    $('body > span').each(function() { 
    if ($(this).text() === 'BESbewy') { 
     //if you remove the element, You might see errors in Google Chrome 
     $(this).hide(); 
     clearInterval(clearDamnSpan); 
    } 
    }); 
}, 500); 
setTimeout(function() { 
    clearInterval(clearDamnSpan); 
}, 50000);