angularjs之$timeout指令详解 angular.js的$timeout指令对window.setTimeout做了一个封装,它的返回值是一个promise对象.当定义的时 angularjs的timeout