jQuery for JSZepto Mobile

Zepto github address: https: //github.com/madrobby/zepto Official address: http://zeptojs.com / Chinese version address: http://www.css88.com/doc/zeptojs_api/ Zepto is the mobile version of jQuery, which can be regarded as a lightweight jQuery Attention Zepto The purpose of the design is to provide a similar API to jQuery, but not 100% coverage of jQuery The bottom layer of jQuery is to achieve the effect through DOM, and zepto.js is realized by css3; The zepto downloaded from the official website already contains the default modules described on the official website The zepto module downloaded from github needs to be imported by itself Zepto click event Because there are many gestures on the mobile terminal and double-click and double-click, the click event on the mobile terminal has a delay of about 300ms, so the click on the mobile terminal Events use tab $(“div”).tap(function(){  … }) Touch related events in Zepto touchstart touchstart is an event triggered when a finger just touches an element touchmove touchmove is an event triggered when the finger moves touchend triggered when the finger leaves the specified element Attention When adding the above three events, use addEventListener The above three events are invalid on the PC side The object of the touch event…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索