标签: javascript object properties set
设置对象的属性时,有什么方法可以触发功能?
function Vector(x,y,z){ this.x= Quaternion(x); this.y=y; this.z=z; } function Quaternion(x,y,z,w){ this.x=x; this.y=y; this.z=z; this.w=w; }