$.ajax({
type:'post',
url :'index.php',
data:{'id':11},
dataType: 'json',
xhrFields: {
withCredentials: true
},
crossDomain: true,
success:function(res){
console.log(res);
}
})
ajax用post方式实现跨域请求
最新推荐文章于 2020-08-29 10:53:42 发布