更新时间:2022-05-12 06:27:00
我想事业,他们已删除了承诺超时选项,你现在只能给毫秒超时,但可能有一些错误的角度JS的版本有一个变通为,
检查此链接
的http://www.bennadel.com/blog/2624-aborting-an-ajax-request-in-angularjs-using-httpi.htm
i think there might be something wrong with the version of angular js cause they have removed the timeout option for promise and you can now only give timeout in milliseconds but there is a work around for that, check this link http://www.bennadel.com/blog/2624-aborting-an-ajax-request-in-angularjs-using-httpi.htm