多语言展示
当前在线:492今日阅读:75今日分享:44

Ionic Cordova插件 InAPPBrowser

在应用程序中打开一个浏览器
方法/步骤
1

cordova plugin add cordova-plugin-inappbrowser方法参考文档:http://ngcordova.com/docs/plugins/inAppBrowser/

3

controllerwindow.open('http://baidu.com', '_blank', 'location=yes');

4

页面

5

重新build》ionic build android

6

运行效果

参数
1

window.open(url, target, options);

2

var ref=window.open(url, target, options);Methods:addEventListenerremoveEventListenercloseshowexecuteScriptinsertCSS具体其他可查看官方详细文档

推荐信息