官方DEMO中代码如下:
var ws=null,embed=null;
// 扩展API加载完毕,现在可以正常调用扩展API
function plusReady(){
ws=plus.webview.currentWebview();
embed=plus.webview.create("http://weibo.com/dhnetwork","embed",{top:"46px",bottom:"0px"});
ws.append(embed);
embed.addEventListener("loaded",onBrowserLoading,false);
}
其中我如何把里面的网址,从前一页获取到,也就是如何从父页面传值到嵌套页面中。
2 个回复
朋也 - https://tomoya92.github.io
直接openWindow打开嵌套页面,在openWindow里传参数
朋也 - https://tomoya92.github.io