怪我咯2017-04-17 14:27:57
iScroll will block the default behavior of events in order to simulate scrolling. Therefore, your a
tag cannot be clicked, the event will not be triggered, and there will be no :active
. Do not try to bind a
Defining the event and then adding a new active
class is in vain. You can take a look at the iscroll documentation. It specifically talks about this. The parameter is: preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|A)$/}
, so that the a
tag can add events normally.