How to open Safari from a WebApp in iOS 7

Joshua Smith提出了一个问题:How to open Safari from a WebApp in iOS 7,或许与您遇到的问题类似。

回答者Mitchell Simoens给出了该问题的处理方式:

Having an anchor tag with target _blankwill work in iOS 7.0.3 but using window.open will not work and will remain to open within the webview in 7.0.3:

window.open('http://www.google.com/', '_blank');

希望本文对你有帮助,欢迎支持JavaScript中文网