使用createDelegate()方法来创建代理函数,从而改变当前函数中this的作用域
this.addForm.txtFolderPath.onTriggerClick = this.locateTreePath.createDelegate(this);
使用createDelegate()方法来创建代理函数,从而改变当前函数中this的作用域
this.addForm.txtFolderPath.onTriggerClick = this.locateTreePath.createDelegate(this);