开发者

Can jQuery Mobile be used without altering layout or DOM?

开发者 https://www.devze.com 2023-02-22 01:46 出处:网络
I\'m interested in using only some of the components of jQuery mobile (specifically, the tap event handlers and datepicker). What\'s the best way to make use of the library without it \"taking over\"

I'm interested in using only some of the components of jQuery mobile (specifically, the tap event handlers and datepicker). What's the best way to make use of the library without it "taking over" the layout and be开发者_JS百科havior my mobile web app?


modifying DOM is JQM's main feature. You have to cripple it hard.

Get the repo from git, remove all plugins from manifest, get to the code and find the .page method/widget and remove all the code (or leave some bits if you need to get something working - I haven't tried that).

Then run make and it will create a stripped jquery.mobile.min.js for you

0

精彩评论

暂无评论...
验证码 换一张
取 消