简体   繁体   中英

How do I manipulate the DOM when I using jQuery Mobile?

Do I use the jQuery way ? Or jQuery Mobile also provides functions to manipulate the DOM?

jQuery Mobile includes jQuery so you do it in jQuery way.

Also note that jQuery Mobile does not generate final DOM until the page init events are called:

http://jquerymobile.com/test/docs/api/events.html

Note separate events for pages loaded using AJAX (on by default)

Yes, you use standard jQuery techniques for DOM manipulation.

http://jquerymobile.com/demos/1.0rc1/docs/about/intro.html says:

jQuery's mobile strategy can be summarized simply: A unified user interface system that works seamlessly across all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation . Focused on a lightweight codebase built on progressive enhancement with a flexible, easily themeable design.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM