Angular set函数和Component属性的命名冲突问题

74 阅读1分钟

set函数和Component属性名称不能重复,可以把Component属性加上下划线,暗示其是私有属性,然后通过公有的set来管理。


更多Jerry的原创文章,尽在:“汪子熙”: