mui中a标签跳转问题

it2022-06-10  82

 

1.如果只是手机版,解决导航a标签不能跳转页面可以

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

2.如果还有电脑版的话,解决导航a标签不能跳转页面就要用

mui('body').on('click','a',function(){document.location.href=this.href;});

转载于:https://www.cnblogs.com/yuan9580/p/11180705.html


最新回复(0)