mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-01 03:14:43 +00:00
Update docs/pages/page-navmodel.html
This commit is contained in:
parent
b8dcdc9657
commit
7796c4182f
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@
|
|||
<p>So, for example, a page generated by the listview plugin may have a <code>data-url</code> attribute like this: <code>data-url="artists.html&ui-page=listview-1"</code></p>
|
||||
|
||||
<p>When a page is requested, jQuery Mobile knows to split the URL at "&ui-page" and make an HTTP request to the portion of the URL before that key. In the case of the listview example mentioned above, the URL would look like this: http://example.com/artists.html&ui-page=listview-1
|
||||
...and jQuery Mobile would request artists.html, which would then generate its sub-pages, creating the vcode>div</code> with <code>data-url="artists.html&ui-page=listview-1"</code>, which it will then display as the active page.</p>
|
||||
...and jQuery Mobile would request artists.html, which would then generate its sub-pages, creating the <code>div</code> with <code>data-url="artists.html&ui-page=listview-1"</code>, which it will then display as the active page.</p>
|
||||
|
||||
<p><em>Note that the <code>data-url</code> attribute of the element contains the full URL path, not just the portion after &ui-page=. This allows jQuery Mobile to use a single consistent mechanism that matches URLs to page <code>data-url</code> attributes.</em></p>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue