方法一:
传递参数:
mui('.adver-right').on('tap', 'div', function(e) {
mui.openWindow({
url: 'notice.html', //跳转路径
id: 'notice.html',
extras: {
name: 123 //传递参数
},
});
});
接受参数:
注意: plus.webview只能在真机上调试
var currView = plus.webview.currentWebview();
var parentview = currView.opener();
//alert(currView.name); //123
方法二
localStorage.setItem("key",content.data.id); //储存数据
localStorage.getItem(key);//获取指定key的数据
localStorage.removeItem(key);//删除指定key的数据
window.localStorage.clear();//清空所有的存储数据