$.ajax() IE 兼容问题

jquery 在chrome、FireFox 都正常,但是在IE 下请求不带数据,网上胡乱搜一通,加个
crossDomain: true == !(document.all)

就莫名其妙地好了,暂且还没弄明白什么原因,日后有时间再研究!
IE真的是很闹心!
IE真的是很闹心!
IE真的是很闹心!
$.ajax({
url: 'http://dhudong.cztv.com/vote/getvote?vote_id='+vote_id,
dataType: "json",
async: true,
type: 'GET',
cache: false,

crossDomain: true == !(document.all),//我也不知道为什么,加了它就对了!

  success: function(obj) {

    // do something
}
});
原文地址:https://www.cnblogs.com/lonecry/p/6077832.html