JS代码编辑执行器
//JSONP(JSON with Padding)跨域请求 $.ajax({ type:"GET", url:"/tests/jsonpserver.php", //访问的链接 dataType:"jsonp", //数据格式设置为jsonp jsonp:"jsonpCallBack", //Jquery生成验证参数的名称,需与服务端约定 success:function(data){ //请求成功的回调函数 console.log(JSON.stringify(data)); }, error: function (e,t) { console.log("error msg== \n" +t); } });