window.alert = function (name) {
var iframe = document.createElement("IFRAME");
iframe.style.display = "none";
iframe.setAttribute("src", 'data:text/plain,');
document.documentElement.appendChild(iframe);
window.frames[0].window.alert(name);
iframe.parentNode.removeChild(iframe);
};
去除手机移动端alert的时候带有的网址
猜你喜欢
转载自blog.csdn.net/xiaomajia029/article/details/81941077
今日推荐
周排行