mui('#sport').on('tap','li',function(e){ mui(this).setAttribute('class','active'); }); [ERROR] : TypeError: mui(this).setAttribute is not a function. 老是报错
1 个回复
Virgin (作者)
解决了,被Jquery带坏了,用this.setAttribute('class','active')就好了