angular.js - angularjs中value和constant除了是否能被修改之外还有什么区别?
为情所困
为情所困 2017-05-15 17:01:28
0
1
707

angularjs中value和constant除了是否能被修改之外还有什么区别?

为情所困
为情所困

reply all(1)
伊谢尔伦

Another point may be the effective time. constant因为是注册的是静态值(常量),所以它可以在其他valuefactoryservice生效之前生效。话优点绕,简单说,就是constantcan be injected and used during config, but the other ones cannot

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!