Hence prototype object is the best place to define methods like area which remain the same for all Rectangle objects.
因此prototype对象是一个最理想地方来存储像area这个所有对象都相同的属性。
Here every Rectangle object created will have three properties - height, width and area.
在这里矩形对象中会有会个属性,height, width和area。
The start method creates the translucent rectangle and passes it to another object called a dragger.
start 方法创建这个透明矩形并将其传递给另一个称为 dragger 的对象。
应用推荐