ajax中请求之后的回调函数function(response,status,xhr)

function(response,status,xhr)

规定当请求完成时运行的函数。

额外的参数:

  • response - 包含来自请求的结果数据
  • status - 包含请求的状态("success", "notmodified", "error", "timeout" 或 "parsererror")
  • xhr - 包含 XMLHttpRequest 对象

猜你喜欢

转载自blog.csdn.net/mm1030533738/article/details/81190623