在浏览器中打开所有链接
open all links in the browser
我需要在新浏览器 window 而不是在应用程序中打开所有 link。这个特别懂但是正好我占了一个google的地图,它有一个link到"Terms and Conditions"然后点击,打开到ionic我的application又过不去。任何人都知道是否有执行此操作的指令或服务?
我正在使用离子框架。
我假设您正在寻找本教程。它将停止您的所有标签并在 InAppBrowser 中打开这些链接。
window.open(‘http://example.com’, ‘_system’); Loads in the system browser
window.open(‘http://example.com’, ‘_blank’); Loads in the InAppBrowser
window.open(‘http://example.com’, ‘_blank’, ‘location=no’); Loads in the InAppBrowser with no location bar
window.open(‘http://example.com’, ‘_self’); Loads in the Cordova web view
教程Here
我需要在新浏览器 window 而不是在应用程序中打开所有 link。这个特别懂但是正好我占了一个google的地图,它有一个link到"Terms and Conditions"然后点击,打开到ionic我的application又过不去。任何人都知道是否有执行此操作的指令或服务?
我正在使用离子框架。
我假设您正在寻找本教程。它将停止您的所有标签并在 InAppBrowser 中打开这些链接。
window.open(‘http://example.com’, ‘_system’); Loads in the system browser
window.open(‘http://example.com’, ‘_blank’); Loads in the InAppBrowser
window.open(‘http://example.com’, ‘_blank’, ‘location=no’); Loads in the InAppBrowser with no location bar
window.open(‘http://example.com’, ‘_self’); Loads in the Cordova web view
教程Here