Home > Web Front-end > JS Tutorial > body text

Solution to js failure when styles are lost after jquery mobile page jumps_jquery

WBOY
Release: 2016-05-16 16:37:01
Original
1260 people have browsed it

When using ajax to jump, after jumping from a.html to b.html, the css and js of b.html are invalid.

Method:

Put the css and js needed for the current page b.html in the div.

Principle:

When jqm’s ajax jumps, only the content within in b.html will be loaded into the dom, and the code outside will not be loaded, so the External js and css are invalid.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template