转自:https://www.cnblogs.com/mengfei001/p/6811475.html


mui框架之a标签无法跳转的问题

前段时间在经理那接了个支线任务,第一次接触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;
});

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-10
  • 2022-12-23
  • 2022-01-19
  • 2022-12-23
  • 2022-01-16
  • 2022-02-09
相关资源
相似解决方案