我在堆栈中寻找那个错误,但没有找到任何关于它的东西(除了听众)。所以我有这样的代码:
<a onclick="startDownload(447, '63dc7ed1010d3c3b8269faf0ba7491d4', 217)">
我的 Js 是:
function startDownload(modId, secret, file){
var transfer = {
id : modId,
secret : secret,
file : file
};
$.ajax({
url: "download/index",
type: 'POST',
dataType: 'json',
data: transfer,
success: function(data) {
if(data.redirect_failed){
location.href = data.redirect_failed;
} else if(data.redirect_success){
location.href = data.redirect_success;
}
}
});
};
那么为什么这不适用于 IE 呢?如何解决?