优化错误提示

exceptionHandle
nwb 11 years ago
parent b733f5c2b9
commit cea01b4df5

@ -296,7 +296,7 @@
if (textStatus == 'success') { if (textStatus == 'success') {
eval(xhr.responseText); eval(xhr.responseText);
} else if (textStatus == 'error') { } else if (textStatus == 'error') {
alert('error'); alert('An error has occurred');
} }
}); });
} }
@ -312,7 +312,7 @@
if (textStatus == 'success') { if (textStatus == 'success') {
eval(xhr.responseText); eval(xhr.responseText);
} else if (textStatus == 'error') { } else if (textStatus == 'error') {
alert('error'); alert('An error has occurred');
} }
; ;
}); });
@ -331,7 +331,7 @@
if (textStatus == 'success') { if (textStatus == 'success') {
eval(xhr.responseText); eval(xhr.responseText);
} else if (textStatus == 'error') { } else if (textStatus == 'error') {
alert('error'); alert('An error has occurred');
} }
; ;
}); });
@ -350,7 +350,7 @@
type: "POST" type: "POST"
}); });
} else if (textStatus == 'error') { } else if (textStatus == 'error') {
alert('error'); alert('An error has occurred');
} }
}); });
} }

Loading…
Cancel
Save