sencha toucha获取 constructor中的数据

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

  this.config.tmp=conf;

}

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

this.config.tmp=conf;

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

this.config.tmp获取conf的值

 

posted @ 2017-04-24 17:00  xqnq2007  阅读(172)  评论(0编辑  收藏  举报