$.post(...).error is not a function 的解决办法

$.post(...).error is not a function 的解决办法

小Z 技术 5年前 3 0

调用 jquery 的 post 进行 ajax 请求时,.error 回调方法错误,提示: 产生错误的原因是 jQuery3.0 之后 ajax 操作中的.success()、.error()、.complete()已经被删除,取而代之的是新的.done()、.fail().、always()。 解...

扫一扫二维码分享