JQuery uses jsonp to implement cross domain requests

     type: "get",
     async: false,
     url: "http://apppay.xyz/apppay.php",
     Datatype: "jsonp", // the returned data type, set to jsonp mode
     Jsonp: "callback name", // the parameter name passed to the request handler or page to obtain the name of the jsonp callback function (generally, the default is: callback)
     Jsonpcallback: "callbackname", // the name of the custom jsonp callback function. By default, it is the name of the random function automatically generated by jQuery. You can also write "?", and jQuery will automatically process the data for you
     success: function(json){
     error: function(){
        //  alert('fail');

Author: Little Book boy
Welcome to study and exchange

Recommended Today

SQL exercise 20 – Modeling & Reporting

This blog is used to review and sort out the common topic modeling architecture, analysis oriented architecture and integration topic reports in data warehouse. I have uploaded these reports to GitHub. If you are interested, you can have a lookAddress:https://github.com/nino-laiqiu/TiTanI recorded a relatively complete development process in my hexo blog deployed on GitHub. You can […]