I'm trying to bind an event handler to a click function using zepto.js. Normally in JQuery I can just say return false and the actual click will never go through. Does Zepto not support this? And if so, how to get around this?
To duplicate the behaviour of returning false in a jQuery event handler you need to call event.preventDefault()
and event.stopPropagation()
.
来源:https://stackoverflow.com/questions/6207956/zepto-js-doesnt-return-false