How to use jQuery Mobile for its touch event support only (no UI enhancements)?

前端 未结 8 666
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-04 07:09

I’m working on a web app that has its own look and feel. I want to use jQuery Mobile for the touch events support only.

When I link jquery.mobile.min.js (without li

8条回答
  •  既然无缘
    2020-12-04 07:24

    If you want to use jQuery mobile for touch events only, add this piece of script before you load the jQuery mobile library:

    
    

    This prevents jquery mobile from initializing the page and touching the DOM, thus leaving your layout alone.

提交回复
热议问题