可以通过 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");
});
});
1 个回复
Danny - QQ125904483
可以通过 appendJsFile 的方式在远程页面注入js代码,例如: