这些新对象的构造函数访问PDOM以存储其信息。
The constructors for these new objects access the PDOM to store their information.
对象的构造函数和render方法看上去是这样的
The object's constructor and its render method look like this
这在对象的构造函数中完成,和之前 清单 2 中的例子一样。
This is done in the object's constructor, just as you've done in the previous example in Listing 2.
应用推荐