sencha toucha获取 constructor中的数据

config:{
tmp:null
},
constructor : function(conf) {

  this.config.tmp=conf;

}

添加配置属性,然后直接用

this.config.tmp=conf;

 赋值,赋值后,可在其他函数中通过

this.config.tmp获取conf的值

原文地址:https://www.cnblogs.com/xqnq2007/p/6757777.html