The instance of the <ui:button> is passed as a parameter to the constructor function and I keep a reference to it as this.element.
<ui:button>的实例被作为参数传递给构造函数,我使用 this.element保持对它的引用。
By using a reference parameter, the function can access the object directly without copying it.
使用引用形参,函数可以直接访问实参对象,而无须复制它。
By using a reference parameter, the function can access the object directly without copying it.
使用引用形参,函数可以直接访问实参对象,而无须复制它。
应用推荐