摘要: 1、命名空间定义:对于类的组织定义方式代码举例:Ext.namespace("Ext.materialAttribute.index");和C#里面的命名空间差不多,在Java中类似于包的概念,Java代码对照:package Ext.materialAttribute.index;看以下代码:Ext.namespace("Ext.materialAttribute.index"); Ext.materialAttribute.index.HelloWorld = Ext.emptyFn;上面代码定义了一个HelloWorld的空函数,等同于:Ext.n 阅读全文
posted @ 2013-11-27 21:18 yaocanwei 阅读(161) 评论(0) 推荐(0) 编辑