1, 打开事件
mui.init({
gestureConfig:{
longtap: true, //默认为false
}
}
2,事件绑定
mui('body').on('longtap','.myTap',function(){
console.log(JSON.stringify(this.getAttribute('target')) )
}
3,页面绑定
<span class="MyTap" :target='abc' ></span>