How do I manipulate the DOM when I using jQuery Mobile?
Do I use the jQue开发者_Go百科ry 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.
精彩评论