Examples of MUI cross-domain Request data:

Source: Internet
Author: User

<ul class="Mui-table-view" style="margin-top: px; "> <li class="Mui-table-view-cell"><a id="About" class="Mui-navigate-right" >about MUI</a></li></ul>

document. getElementById ("about"). AddEventListener (' tap ', function() { Fgetdata ();        });
    need to strictly follow the following format, the requested field is written in data, the URL needs to add? jsoncallback=?
        functionfgetdata() { //Request data alert (' Start get Data '); mui.ajax ({ type: "Get", URL: "http://115.28.18.116:8089/?jsoncallback=?",Async: true,Data: {CID: 3, key: ' Instant '                 },dataType: "Jsonp",jsonp: "Jsoncallback",Timeout: +,Success: function(data) {alert (data); var vData = json.stringify (data);alert (vData);                }, error: function(xhr, type, errorthrown) {Plus.nativeUI.toast (errorthrown);                }            });        }

Well, this tutorial is over,Reprint please retain the original author's address and name (I freely share experience, paid to make the app, there is a need to contact me. );
South Masan E-mail:[email protected] Date: 2016-04-03

Examples of MUI cross-domain Request data:

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.