Jquery mobile page after style loss js invalid solution
- 2020-03-30 03:53:28
- OfStack
When jumping from a.html to b.html with ajax, the CSS and js for b.html are disabled.
Methods:
Put the CSS and js needed for the current page b.html in < Page> Div.
Principle:
Due to JQM's ajax jump, only the b. Page> Is loaded into the dom, while < Page> External code will not be loaded, so results in < Page> Js and CSS are invalid.