Ordered list
<div data-role= "Content" >
<ol data-role= "ListView" Data-theme= "G" >
<li><a href= "#" > List 1</a></li>
<li><a href= "#" > List 2</a></li>
<li><a href= "#" > List 3</a></li>
</ol>
</div>
Read-only List
<div data-role= "Content" >
<ul data-role= "ListView" data-inset= "true" >
<li><a href= "#" > List 1</a></li>
<li><a href= "#" > List 2</a></li>
<li><a href= "#" > List 3</a></li>
</ul>
</div>
divisible button list
<div data-role= "content"
<ul data-role= "ListView" Data-theme= "G" D ata-split-icon= "Gear" data-split-theme= "D";
<li><a href= "#" > List 1</a><a href= "#" >&L T;/a></li>
<li><a href= "#" > List 2</a><a href= "#" ></A></LI>
<li><a href= "#" > List 3</a><a href= "#" ></A></LI>
</ul>
</div& gt;
Contains a list of bubble-type counts
<div data-role= "Content" >
<ul data-role= "ListView" Data-theme= "G" >
<li><a href= "#" > List 1</a><span class= "Ui-li-count" >33</span></li>
<li><a href= "#" > List 2</a><span class= "Ui-li-count" >222</span></li>
<li><a href= "#" > List 3</a><span class= "Ui-li-count" >111</span></li>
</ul>
</div>
Configuration options.
When the jquery Mobile starts running, it triggers a mobileinit event on the Document object. This event allows us to override the default corresponding function. Configure various property parameters.
Here's how to use it:
$ (document). Bind ("Mobileinit", function () {
Add the user custom code here.
})
<script src= "Jquery.js" ></script>
<script src= "Custom event handler js file" ></script>
<script src= "Jquerymobile.js" ></script>
Provides the developer with an object: $.mobile. The purpose of this object is to configure various options and default configurations.
$ (document). Bind ("Mobileinit", function () {
$.mobile.foo = "Foo"; l
})
Configurable options:
1.ns
Type: string, default non-empty string.
Usage: $.mobile.ns= "MyNamespace"
Description: Customize namespaces to avoid namespaces.
2.autolnitializePage
Type: Boolean type, default is true.
Usage: $.mobile.autoinitializepage = False
Description: By default, when the page DOM element is ready, the program automatically loads the $.mobile.initializepage function if set to False
The page is not set up and remains hidden.
3.subPageUrlKey
Type: string, default value is Ui-page.
Usage: $.mobile.subpageurlkey = "page"
Description: Change the name of the key parameter in the URL address of the jquery Mobile view, and the URL address will be changed to Subpageurlkey = "Page" When the selected parameter is changed to
Example.html?page=subpage.
4.activePageClass
Type: string, default value is Ui-page-active
Usage: $.mobile.activepageclass = "Ui-ns-page-active".
Description: The main feature is the view CSS style when customizing the Active state page and the over state.
5.activeBtnClass
Type: string, default value is Ui-btn-active
Usage: $.mobile.activebtnclass = "Ui-ns-page-active"
Description: The main function of this option is to customize the style of the girl in the active state.
6.ajaxEnabled
Type: Boolean value, default value is True
Usage: $.mobile.ajaxenabled = False
Description: Sets whether to use Ajax to load pages or submit data when you click Connect or submit a form or button.
7.hashListeningEnabled
Type: Boolean value, default value is true;
Usage: $.mobile.hashlisteningenabled = False
Description: Set whether to automatically listen to and handle changes to the Location.hash, if set to False, you can use the manual way to deal with the change of the hash, or simply use the connection
Address to jump.
8.defaultPageTransition
Type: string, default value is slide
Usage: $.mobile.defaultpagetransition = "Fade"
Description: This option parameter mainly sets the page to toggle the default effect, if set to none, the page switch will not have the effect, the optional parameter Slideup (left and right slide in)
Slideup (swipe down from bottom up) slidedown (slid in from top) pop (by center)
9.touchOverflowEnabled
Type: Boolean value, default value is False
Usage: $.mobile.touchoverflowenabled = True
Description: Whether to use the original eco-scrolling characteristics of the device.
10.defaultDialogTransition
Type: string, default value is Pop
Usage: $.mobile.defaultdialogtransition = "None"
Description: Sets the pop-up effect of the Ajax dialog box, which is not overly effective if set to none.
11.minScrollBack
Type: string, default value is 150
Usage: $.mobile.minscrollback = "200"
Description: The scrolling position memory function is triggered when scrolling exceeds the set height.
12.loadingMessage
Type: String default value is loading
Usage: $.mobile.loadingmessage = "in Load"
Description: Sets the text content of the page load state. If set to False, no content is displayed.
13.pageLoadErrorMessage
Type: string, default value is Error Loading Page
Usage: $.mobile.pageloaderrormessage = "Page load Failed"
Description: Sets the text content of the prompt that appears when an AJAX page request fails
14.gradeA
Type: Boolean value, default value is $.support.mediaquery value
Usage: $.mobile.gradea
Description: Returns True when the browser complies with all supported conditions.
jquery Mobile Web (5)