优化错误提示

This commit is contained in:
nwb 2014-05-14 18:33:27 +08:00
parent b733f5c2b9
commit cea01b4df5
1 changed files with 4 additions and 4 deletions

View File

@ -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');
} }
}); });
} }