Jquery mobile Chinese manual Ajax development edition (2)

Source: Internet
Author: User

Ajaxenabled (Boolean, default: True ):

At the same time, you can set whether the Ajax method is used for Link and form submission on the page. That is to say, both the form submission and the link in the tag are called using Ajax.

Boolean type. The parameter is true by default.

For example:

$ (Document). BIND ("mobileinit", function (){

$. Mobile. ajaxenabled = false;

});

If Ajax is not used in your projectWe recommend that you set this parameter to false.

Ajaxformsenabled (deprecated Boolean, default: True ):

Set whether to use Ajax for form submission on the page.

Boolean type. The parameter is true by default.

Ajaxlinksenabled (deprecated Boolean, default: True ):

Set whether to use Ajax for links on the page.

Boolean type. The parameter is true by default.

Autoinitialize (Boolean, default: True ):

Set whether the page is automatically initialized. When it is set to false, jqm will delay page rendering so that we can dynamically construct DOM elements of the page and other asynchronous operations.

After the page element is built, use $. Mobile. initializepage (); To start rendering the page.

Boolean type. The default value is true.

For example:

$ (Document). BIND ("mobileinit", function (){

$. Mobile. autoinitialize = false; // a rendering error occurs when you delete this row of configuration parameters.

});

$ (Function (){

Function newdom (){

$ ("Div [data-role = 'content']")

. Append ("<a href='web.html 'data-role = 'button'> link button </a> ");

$. Mobile. initializepage (); // render the page after loading.

}

SetTimeout (newdom, 500); // delayed Loading

});

Defaulttransition (string, default: 'slide '):

Set the default page transition effect. If you do not want to use the transition effect, set the parameter to "NONE ".

Character type. The default parameter is "slide ".

Gradea (function that returns a Boolean, default: A function returning the value of $. Support. mediaquery ):

Used to determine whether a browser belongs to a browser.

Boolean type. The default value $. Support. mediaquery is used to return this Boolean value.

Loadingmessage (string, default: "loading "):

Set the text displayed in the loading prompt box. If it is set to false, the loading prompt box is not displayed.

Character type. The default value is "loadind ".

Metaviewportcontent (string, default: "width = device-width, minimum-scale = 1, maximum-scale = 1 "):

Set the Mata element used to adapt to the page proportion. If it is set to false, the Mata element is not added.

Character type. The default value is "width = device-width, minimum-scale = 1, maximum-scale = 1 ".

Nonhistoryselectors (string, default: "dialog "):

The specified data-rel parameter is not recorded in the hash table.

Since data-rel currently only has the "dialog" parameter, we recommend that you do not customize this item.

Subpageurlkey (string, default: "UI-page "):

Used to set the identifier of the hash table when a subpage is referenced.

Character type. The default value is "UI-page ".

The Initialization Configuration is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.