ประโยคภาษาจีน : 中文句子 |
---|
suǒ yǐ 所以 wèi le 为了 chuàng jiàn 创建 kě 可 yóu 由 suǒ yǒu 所有 lèi 类 gòng xiǎng 共享 de 的 fāng fǎ 方法 wǒ 我 zài 在 yuán xíng 原型 zhī shàng 之上 shè zhì 设置 le 了 hán shù 函数 ér 而 bù jǐn jǐn 不仅仅 shì zài 是在 duì xiàng 对象 shàng 上 |
So, to create methods shared by all classes, I set the function on the prototype, not just on the object. |