实现列表 里 li的tap事件跳转界面。li里有按钮,按钮的点击事件和li的事件冲突,怎么解决?
c***@163.com
- 发布:2017-12-20 19:03
- 更新:2017-12-21 10:20
- 阅读:1164
c***@163.com (作者)
function downOK(){
mui.toast("sad")
}
function addListener(){
var prPage = mui.preload({url:"dets.html",id:"dets.html"});
mui('#dataList').on('tap','.mui-table-view-cell',function(){
var orderid = this.firstChild.getAttribute("oid")
mui.fire(prPage,"newsDets",{"orderid":orderid});
mui.openWindow({url:"dets.html",id:"dets.html"});
return false;
});
}
并没有用啊,点按钮 执行downOK() 还是被li的tap覆盖了
2017-12-20 20:49