Is it possible use jQuery Mobile only for “some” functions?

岁酱吖の 提交于 2019-12-24 14:33:57

问题


I need jQuery mobile only for function like swipeleft.

In fact, when I load jQuery Mobile, it edit the whole template of the website; changing all links as ajax request, and tons of functionality that I don't need at all!

Is it possible to load this plugins without default behavior? Just for using its some functions...


回答1:


You couldn't wait for me to give you an answer in last question. ;)

To make answer short, yes you can. Go to this link:

http://jquerymobile.com/download-builder/1 and build yourself custom jQM library. Only works with jQM 1.1.1 and 1.2. Take only Events -> touch.



来源:https://stackoverflow.com/questions/13643948/is-it-possible-use-jquery-mobile-only-for-some-functions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!