2013-05-28 67 views

回答

0

我已经拿到了plunker工作

http://plunker.co/edit/DFBs3hTobHDs36QdqPte?p=preview

代码库说,它可以接受timeout参数,但我还不知道如何使用它

https://github.com/mgcrea/angular-strap/blob/master/src/directives/alert.js#L5

+0

这不是'timeout'参数,它是'$ timeout'的依赖关系,由[AngularJS]提供(http:/ /docs.angularjs.org/api/ng.$timeout)。 – rtcherry

+0

我明白了,你有没有看到我可以使用超时的方法? – daydreamer