微信公众号开发弹框提示ios的会出现网址,解决办法:
直接复制此段代码即可

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('ok');

标签: none

添加新评论