mui.plusReady(function() {
document.getElementById("goto_baidu").addEventListener("tap", function() {
mui.openWindow({
url: "http://www.nanyang.gov.cn",
id: "target"
});
});
});
===========================================
mui(".main-list").on('tap', 'a', function() {
var self = plus.webview.currentWebview();
var baiduWV = plus.webview.create("http://www.nanyang.gov.cn/ggfw/fwList.jsp?cat_id=10186&tm_id=932", "baidu", {
top: "44px",
bottom: "20px"
});
self.append(baiduWV);
})
============================================
使用了两种方法:
刚入手,请教大家,新窗口打开本地页面没问题,但是外链地址的话,按返回键窗口不会消失。
请问正确做法是什么。感谢
1 个回复
下雨咯 - 谢绝私聊