raise
raise
  • 发布:2019-03-04 16:38
  • 更新:2019-03-05 08:51
  • 阅读:1317

webview引入外部网页如何使用app本地资源

分类:HTML5+

webview引入外部网页如何使用app本地资源?

如js,和图片文件

2019-03-04 16:38 负责人:无 分享
已邀请:
Danny

Danny - QQ125904483

可以通过 appendJsFile 的方式在远程页面注入js代码,例如:

mui.plusReady(function() {  
    var wv_remote_index = plus.webview.create("http://www.dgv5.com", "wv_remote_index");  
    wv_remote_index.show("none", "0", function() {  
        wv_remote_index.appendJsFile("_www/js/mui.min.js");  
        wv_remote_index.appendJsFile("_www/js/app.js");  
    });  
});

该问题目前已经被锁定, 无法添加新回复