01
$.ajax({
02
type:
"POST"
,
03
contentType:
"application/json"
,
04
url: myurl,
05
<font color=
"#ff0000"
>data</font>: {},
06
timeout: 30000,
//超时时间:30秒
07
dataType:
'json'
,
08
<font color=
"#ff0000"
>error</font>: function(XMLHttpRequest, textStatus, errorThrown){
09
},
10
success: function(result) {
11
// TODO: check result
12
}
13
Jquery Ajax时 error处理 之 parsererror
最新推荐文章于 2021-08-20 14:16:42 发布