原文 标签 javascript prototype getter-setter ... 可以添加属性 a 到对象 o ,然后在原型(prototype) p 中添加一个同名的setter : o.a = 1 Object.
確定! 回上一頁