var imageWv = plus.webview.create("http://192.168.200.117:8023/home/CirWelfare", "image", {
top: "44px",
bottom: 0
});  
            imageWv.appendJsFile("js/test.js");  
            imageWv.appendJsFile("static/test.js");  
            imageWv.appendJsFile("_www/js/test.js");  imageWv.show("fade-in");
test.js  文件
function test1(b)
{
console.log(b);
}   
h5 页面调用
pagew = plus.webview.currentWebview();  
    var _arrimg = "测试1123" + pagew.id;  
    setTimeout(function () {  
        pagew.evalJS("test1(\"" + _arrimg + "\")");  
    },2000);  mui 可以。uniapp里面就不行
提示: test1 is not defined at http://192.168.200.117:8023/home/CirWelfare#index_section:1
 
             
             
             
			 
                                        
                                     
            
2 个回复
3***@qq.com (作者) - 网站
代码图。。有高手回复下吗
g***@163.com
你这个可以了吗