When I inspect the following code in Chrome Console it shows me a Request header Accept:undefined
jQuery.ajax({
url: _this.attr('href'),
accepts: "application/json; charset=utf-8",
});
});
How do I set accept type as JSON. I don't want to set a custom header or use beforeSend
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…