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.
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 binda
Defining the event and then adding a newactive
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 thea
tag can add events normally.