跨域

JSONP只支持GET请求,不支持POST请求;

Ajax调用方式:

$.ajax({

type:"GET",

url:"",

dataType:"jsonp",

jsonp:"callback",//与后端协商

success:function(){},

error:function(){}

})

 

posted @ 2015-05-23 16:13  JoeChan  阅读(102)  评论(0编辑  收藏  举报