然后这个属性在构造函数中被初始化,如列表 10所示。
The attributes then gets initialized in the constructor, as shown in the Listing 10.
因为本实例没有任何特殊的构造函数、操作、属性或引用,所以不需要这些调用。
This instance doesn't have any special constructors, operations, attributes, or references, so these calls aren't required.
当然,有趣的事情不仅仅是这些。您可以在组件中包括方法、动画、构造函数属性,等等。
Of course, the fun doesn't stop there: you can include methods, animations, constructor properties, and much more in components.
应用推荐