Mui a 链接失效的解决办法

方法一:

mui('body').on('tap', 'a', function() {
  if(this.href){   //判断链接是否存在
    location.href = this.href;
  }
});

 

方法二:

$('body').on('tap', 'a', function () {
  if(this.href){
    location.href = this.href;
  }
})

posted @ 2019-05-27 14:28  北执666  阅读(589)  评论(0编辑  收藏  举报