Ext中namespace的作用
来源:互联网 发布:淘宝首页psd模板 编辑:程序博客网 时间:2024/05/18 00:36
Ext中在每一个页面中添加一个namespace呢,就像下面的代码:
下面是Ext.nameSpace的API:
// create namespace Ext.namespace('myNameSpace'); // create application myNameSpace.app = function() { // do NOT access DOM from here; elements don't exist yet // private variables // private functions // public space return { // public properties, e.g. strings to translate // public methods init: function() { alert('Application successfully initialized'); } }; }(); // end of app
下面是Ext.nameSpace的API:
namespace( String namespace1, String namespace2, String etc ) : void Creates namespaces to be used for scoping variables and classes so that they are not global. Usage: Ext.namespace('C... Creates namespaces to be used for scoping variables and classes so that they are not global. Usage: Ext.namespace('Company', 'Company.data'); Company.Widget = function() { ... } Company.data.CustomStore = function(config) { ... } Parameters: * namespace1 : String * namespace2 : String * etc : String Returns: * void
0 0
- Ext中namespace的作用
- Mybatis中namespace的作用
- mybatis中,namespace的作用
- mybatis 中mapper 的namespace作用
- 匿名namespace的作用
- 匿名namespace的作用
- 无名namespace的作用
- 匿名namespace的作用
- namespace的作用
- Ext.view.View中itemSelector的作用
- Ext.view.View中itemSelector的作用
- Ext.grid.Panel中stateId的作用
- Ext源码分析:解析Ext的命名空间,Ext.namespace
- Ext源码分析:解析Ext的命名空间,Ext.namespace
- Wcf 中name、namespace作用
- Ext.namespace
- Ext.namespace
- namespace的用法和作用
- ArcGIS制作四色地图
- OGNL使用详解二:Struts2的OGNL应用
- VC++获得桌面背景区域和获取任务栏的高度
- #ifndef的用法
- 多播 广播 DNS TFTP
- Ext中namespace的作用
- 9个offer,12家公司,35场面试,从微软到谷歌
- js获取url中含中文的参数方法
- in/ld: cannot find -lst/usr/bdc++
- Codefoces 432 C. Prime Swaps
- 链栈的c语言实现
- Hash算法简介
- Linux设备模型
- C++之求有向无环图的最长路径(拓扑排序+动态规划)