我错了吗?
我尝试过这个:
ajax({
async: true,
crossDomain : true,
type: "GET",
headers: {
"authorization": "xyz"
},
url: url})
我也尝试过这个:
ajax({
async: true,
crossDomain : true,
type: "GET",
beforeSend: function (jqXHR, settings) {
jqXHR.setRequestHeader('authorization', 'xyz');
},
url: url});