var detailPage = null;
//添加列表项的点击事件
mui('.mui-table-view').on('tap','li', function(e) {
var targetId = this.getAttribute('id'),title = this.getAttribute('data-title');
var webview = mui.openWindow({id:'goods/list.html',url:'list.html',waiting:{autoShow:false},extras:{'id':targetId,'title':title}});
});
})
居然后面id的值等于前面的id,有点奇怪
3 个回复
为乐而来
我也碰到这样的问题,他这个方openWindow有一个是否刷新的参数。可是没有
BoredApe - 有问题就会有答案。
刷新webview请参考:http://www.html5plus.org/doc/zh_cn/webview.html#plus.webview.WebviewObject.reload
为乐而来
@DCloud_MUI_果汁
你这个reload没有传值功能,我说的刷新并换一个值传tid=1到下一个页。。。
1以下是a.html,传一个值tid到b.html
var href="b.html"
var wd=mui.openWindow({
url:href,
id:href,
extras:{
tid:tid
}
});
2.这时候tid=1但是b.html页面也有一个页面跳到a.html页面(不是通过返回键),
要是在openwindow,加一个参数只要原来webviewOjb在,重新转值再刷新打开一下