转自:https://www.cnblogs.com/mengfei001/p/6811475.html
前段时间在经理那接了个支线任务,第一次接触MUI。
需求:展示列表,每一个列表顶部通过点击跳转到这个li对应的详情页,展示更多内容。
根据demo,
<a class="mui-navigate-right" style="width:90%;color:#8E8E8E;" href="mobile_detail.jsp" ></a>
包含卡片头部的内容时,运行时发现只能点一次,或者干脆点了就没反应,查找资料,得到了解决方法
mui('body').on('tap', 'a', function() {
window.top.location.href = this.href;
});