$.support.cors = true;
$.ajax({
crossDomain:true,
xhrFields:{
withCredentials:true
},
data: {aa:"aa"},
dataType:"json",
type:"POST",
...
});
ie8下到底怎么处理?(jquery1.11.3,也用了相关的transport插件)
后端是php,已经做了crossDomain的设置,在主流浏览器下是ok的
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号