<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: