提交 e1086bda 编写于 作者: J Jesse Glick

Merge pull request #1041 from nzmsv/master

Do not attempt to parse blank responses from cancelled XHR POST requests
......@@ -59,10 +59,12 @@ THE SOFTWARE.
method:"POST",
parameters: {min: i*interval, max:(i+1)*interval},
onSuccess: function(t) {
try {
eventSource1.loadJSON(eval('('+t.responseText+')'),'.');
} catch (e) {
alert(e);
if (t.status != 0) {
try {
eventSource1.loadJSON(eval('('+t.responseText+')'),'.');
} catch (e) {
alert(e);
}
}
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册