是否可以在 iPhone 的 UIWebview
中更改 JavaScript 警报标题?
最佳答案
基本上你不能更改标题,但最近我找到了一种显示没有标题的警告对话框的方法。
var iframe = document.createElement("IFRAME");
iframe.setAttribute("src", 'data:text/plain,');
document.documentElement.appendChild(iframe);
window.frames[0].window.alert('hello');
iframe.parentNode.removeChild(iframe);
关于javascript - 在 iOS 中更改 JavaScript 警报对话框标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10681381/