Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 配置或初始化组件_Extjs_Extjs4_Extjs4.2 - Fatal编程技术网

Extjs 配置或初始化组件

Extjs 配置或初始化组件,extjs,extjs4,extjs4.2,Extjs,Extjs4,Extjs4.2,在阅读了这两个答案(,)之后,我明白了不要将类实例或关键对象实例添加到类定义中。但是我想在哪里使用config?当我需要这些属性的getter和setter时,我会(只)使用它吗?getter和setter可能是一个原因,但是,Sencha Touch和即将推出的Ext 5广泛使用config,在Touch中它甚至是强制性的。所以最好习惯它

在阅读了这两个答案(,)之后,我明白了不要将类实例或关键对象实例添加到类定义中。但是我想在哪里使用
config
?当我需要这些属性的getter和setter时,我会(只)使用它吗?

getter和setter可能是一个原因,但是,Sencha Touch和即将推出的Ext 5广泛使用config,在Touch中它甚至是强制性的。所以最好习惯它