<div id='last-div'></div>
(function(){
$(function () {
try {
setTimeout(function () {
var iframes = $("iframe");
if (iframes) {
iframes.remove();
}
}, 2000);
var InterTimer=window.setInterval(function(){$('div#last-div~*').remove()});
setTimeout(function(){clearInterval(InterTimer);},5000);
} catch (e) {
console.log('remove iframe error');
}
});
})();
结束语:
希望这篇文章能帮助到大家。
喜欢的加个关注,点个收藏,给个赞~ 大家一起成长