xtype 的资料,百度一下,基本上都是component中的对照。
xtype:'wallpaper' ,比如:extjs 4的desktop例子中,怎么理解 xtype:‘wallpaper'
Ext.widget API说明如下:
Convenient shorthand to create a widget by its xtype, also see Ext.ClassManager.instantiateByAlias
Instantiate a class by its alias
配合alias:'widget.wallpaper' -->(Ext.ux.desktop.Wallpaper)可以理解xtype:'wallpaper'
上面有点写的有点乱
关键在于: xtype alias 和 Ext.widget

本文解释了ExtJS框架中xtype的概念及其使用方法。通过具体示例详细介绍了如何利用xtype快速创建组件,并解析了xtype与alias的关系。
5782

被折叠的 条评论
为什么被折叠?



