本文介绍了$ Q'最后'不IE8工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
角1.2替换总是
与最后
上的承诺。
Angular 1.2 replaced always
with finally
on promises.
那么,什么是一旦这个:
So what was once this:
$http.get('/myurl').always(handler);
现在需要是这样的:
$http.get('/myurl').finally(handler);
但我在IE8得到错误的预期标识符。我怎样才能使这项工作在IE8?
But I am getting the error "expected identifier" in IE8. How can I make this work in IE8?
推荐答案
发现:https://github.com/angular/angular.js/commit/f078762d48d0d5d9796dcdf2cb0241198677582c
$ http.get('/ myurl')终于(处理器);
这篇关于$ Q'最后'不IE8工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!