qingfengpai / note

1 stars 0 forks source link

前端ajax #8

Open qingfengpai opened 7 years ago

qingfengpai commented 7 years ago
$.ajax({
  url: ,
  dateType: ,
  timeout: 2000,
  success: function() {},
  error: function(result, status, xhr) {
    if (status == 'timeout') {}
    // 403
    // 404
    // 500
  }
})