Extjs学习笔记--(一vs增加extjs智能感知)
1,编写class.js var classList=[
"Ext.layout.container.Absolute",
"Ext.layout.container.AbstractCard",
"Ext.AbstractComponent",
"Ext.AbstractManager",
"Ext.container.AbstractContainer",
"Ext.layout.container.AbstractFit",
"Ext.util.AbstractMixedCollection",
"Ext.panel.AbstractPanel",
"Ext.AbstractPlugin",
"Ext.data.AbstractStore",
"Ext.view.AbstractView",
"Ext.layout.container.Accordion",
"Ext.Action",
"Ext.grid.column.Action",
"Ext.Ajax",
"Ext.data.proxy.Ajax",
"Ext.layout.container.Anchor",
"Ext.fx.Anim",
"Ext.util.Animate",
"Ext.fx.Animator",
"Ext.app.Application",
"Ext.chart.series.Area",
"Ext.data.reader.Array",
"Ext.data.Association",
"Ext.layout.container.Auto",
"Ext.chart.axis.Axis",
"Ext.chart.axis.Gauge",
"Ext.chart.axis.Time",
"Ext.chart.series.Bar",
"Ext.Base",
"Ext.form.field.Base",
"Ext.form.Basic",
"Ext.data.Batch",
"Ext.data.BelongsToAssociation",
"Ext.grid.column.Boolean",
"Ext.layout.container.Border",
"Ext.view.BoundList",
"Ext.view.BoundListKeyNav",
"Ext.layout.container.Box",
"Ext.button.Button",
"Ext.container.ButtonGroup",
"Ext.layout.container.Card",
"Ext.chart.series.Cartesian",
"Ext.chart.axis.Category",
"Ext.grid.plugin.CellEditing",
"Ext.chart.Chart",
"Ext.form.field.Checkbox",
"Ext.form.CheckboxGroup",
"Ext.layout.container.CheckboxGroup",
"Ext.selection.CheckboxModel",
"Ext.menu.CheckItem",
"Ext.Class",
"Ext.ClassManager",
"Ext.util.ClickRepeater",
"Ext.data.proxy.Client",
"Ext.menu.ColorPicker",
"Ext.chart.series.Column",
"Ext.layout.container.Column",
"Ext.form.field.ComboBox",
"Ext.Component",
"Ext.util.ComponentDragger",
"Ext.ComponentLoader",
"Ext.ComponentManager",
"Ext.ComponentQuery",
"Ext.dom.CompositeElement",
"Ext.fx.target.CompositeElementCSS",
"Ext.dom.CompositeElementLite",
"Ext.data.Connection",
"Ext.container.Container",
"Ext.app.Controller",
"Ext.state.CookieProvider",
"Ext.util.Cookies",
"Ext.util.CSS",
"Ext.button.Cycle",
"Ext.data.Model",
"Ext.Date",
"Ext.grid.column.Date",
"Ext.form.field.Date",
"Ext.menu.DatePicker",
"Ext.picker.Date",
"Ext.dd.DD",
"Ext.dd.DDProxy",
"Ext.dd.DDTarget",
"Ext.util.DelayedTask",
"Ext.form.action.DirectLoad",
"Ext.direct.Manager",
"Ext.direct.Provider",
"Ext.data.proxy.Direct",
"Ext.data.DirectStore",
"Ext.form.action.DirectSubmit",
"Ext.form.field.Display",
"Ext.dom.Helper",
"Ext.dom.AbstractHelper",
"Ext.DomQuery",
"Ext.dd.DragDrop",
"Ext.dd.DragDropManager",
"Ext.dd.DragSource",
"Ext.dd.DragTracker",
"Ext.dd.DragZone",
"Ext.draw.Color",
"Ext.draw.Component",
"Ext.draw.CompositeSprite",
"Ext.draw.Sprite",
"Ext.dd.DropTarget",
"Ext.dd.DropZone",
"Ext.fx.Easing",
"Ext.grid.plugin.Editing",
"Ext.Editor",
"Ext.dom.Element",
"Ext.fx.target.ElementCSS",
"Ext.dom.AbstractElement",
"Ext.ElementLoader",
"Ext.data.Errors",
"Ext.util.Event",
"Ext.EventManager",
"Ext.EventObject",
"Ext.EventObjectImpl",
"Ext.direct.ExceptionEvent",
"Ext.Array",
"Ext.Function",
"Ext.is",
"Ext.JSON",
"Ext.Object",
"Ext.String",
"Ext.supports",
"Ext.grid.feature.Feature",
//"Ext.env.FeatureDetector",
"Ext.data.Field",
"Ext.form.FieldAncestor",
"Ext.form.FieldContainer",
"Ext.form.FieldSet",
"Ext.form.field.File",
"Ext.toolbar.Fill",
"Ext.util.Filter",
"Ext.layout.container.Fit",
"Ext.flash.Component",
"Ext.util.Floating",
"Ext.FocusManager",
"Ext.form.action.Action",
"Ext.util.Format",
"Ext.form.field.Field",
"Ext.form.Panel",
"Ext.grid.property.Grid",
"Ext.grid.column.Column",
"Ext.grid.plugin.DragDrop",
"Ext.grid.Panel",
"Ext.grid.View",
"Ext.util.Grouper",
"Ext.grid.feature.Grouping",
"Ext.grid.feature.GroupingSummary",
"Ext.resizer.Handle",
"Ext.util.HashMap",
"Ext.data.HasManyAssociation",
"Ext.layout.container.HBox",
"Ext.panel.Header",
"Ext.grid.property.HeaderContainer",
"Ext.grid.header.Container",
"Ext.grid.plugin.HeaderResizer",
"Ext.form.field.Hidden",
"Ext.util.History",
"Ext.form.field.HtmlEditor",
"Ext.Img",
"Ext.util.Inflector",
"Ext.data.JsonP",
"Ext.direct.JsonProvider",
"Ext.data.reader.Json",
"Ext.util.KeyMap",
"Ext.util.KeyNav",
"Ext.chart.Label",
"Ext.form.Labelable",
"Ext.Layer",
"Ext.chart.Legend",
"Ext.chart.LegendItem",
"Ext.chart.series.Line",
"Ext.form.action.Load",
"Ext.Loader",
"Ext.LoadMask",
"Ext.data.proxy.LocalStorage",
"Ext.chart.Mask",
"Ext.data.proxy.Memory",
"Ext.menu.Menu",
"Ext.menu.Item",
"Ext.menu.Manager",
"Ext.menu.Separator",
"Ext.window.MessageBox",
"Ext.util.MixedCollection",
"Ext.ModelManager",
"Ext.slider.Multi",
"Ext.data.NodeInterface",
"Ext.Number",
"Ext.grid.column.Number",
"Ext.form.field.Number",
"Ext.chart.axis.Numeric",
"Ext.util.Observable",
"Ext.data.Operation",
"Ext.toolbar.Paging",
"Ext.panel.Panel",
"Ext.picker.Color",
"Ext.form.field.Picker",
"Ext.picker.Time",
"Ext.chart.series.Pie",
"Ext.PluginManager",
"Ext.util.Point",
"Ext.direct.PollingProvider",
"Ext.ProgressBar",
"Ext.grid.property.Store",
"Ext.data.proxy.Proxy",
"Ext.tip.QuickTip",
"Ext.tip.QuickTipManager",
"Ext.chart.series.Radar",
"Ext.form.field.Radio",
"Ext.form.RadioGroup",
"Ext.data.reader.Reader",
"Ext.util.Region",
"Ext.dd.Registry",
"Ext.direct.RemotingEvent",
"Ext.direct.RemotingProvider",
"Ext.data.Request",
"Ext.resizer.Resizer",
"Ext.resizer.ResizeTracker",
"Ext.data.proxy.Rest",
"Ext.data.ResultSet",
"Ext.grid.feature.RowBody",
"Ext.grid.plugin.RowEditing",
"Ext.selection.RowModel",
"Ext.grid.RowNumberer",
"Ext.chart.series.Scatter",
"Ext.data.proxy.JsonP",
"Ext.dd.ScrollManager",
"Ext.selection.Model",
"Ext.chart.series.Series",
"Ext.chart.series.Gauge",
"Ext.data.proxy.Server",
"Ext.data.proxy.SessionStorage",
"Ext.Shadow",
"Ext.slider.Single",
"Ext.slider.Tip",
"Ext.util.Sortable",
"Ext.util.Sorter",
"Ext.data.SortTypes",
"Ext.toolbar.Spacer",
"Ext.form.field.Spinner",
"Ext.button.Split",
"Ext.resizer.Splitter",
"Ext.form.action.StandardSubmit",
"Ext.state.Stateful",
"Ext.state.Manager",
"Ext.state.Provider",
"Ext.dd.StatusProxy",
"Ext.data.Store",
"Ext.data.StoreManager",
"Ext.form.action.Submit",
"Ext.grid.feature.Summary",
"Ext.draw.Surface",
"Ext.draw.engine.Svg",
"Ext.tab.Tab",
"Ext.tab.Bar",
"Ext.view.TableChunker",
"Ext.layout.container.Table",
"Ext.tab.Panel",
"Ext.fx.target.Target",
"Ext.fx.target.CompositeElement",
"Ext.fx.target.CompositeSprite",
"Ext.fx.target.Element",
"Ext.fx.target.Sprite",
"Ext.TaskManager",
"Ext.util.TaskRunner",
"Ext.Template",
"Ext.grid.column.Template",
"Ext.form.field.Text",
"Ext.form.field.TextArea",
"Ext.toolbar.TextItem",
"Ext.util.TextMetrics",
"Ext.form.field.Time",
"Ext.tip.Tip",
"Ext.panel.Tool",
"Ext.toolbar.Toolbar",
"Ext.toolbar.Item",
"Ext.toolbar.Separator",
"Ext.tip.ToolTip",
"Ext.fx.target.Component",
"Ext.direct.Transaction",
"Ext.data.Tree",
"Ext.tree.Panel",
"Ext.data.TreeStore",
"Ext.tree.View",
"Ext.form.field.Trigger",
"Ext.data.Types",
"Ext.data.validations",
"Ext.layout.container.VBox",
"Ext.view.View",
"Ext.tree.plugin.TreeViewDragDrop",
"Ext.container.Viewport",
"Ext.view.Table",
"Ext.draw.engine.Vml",
"Ext.form.field.VTypes",
"Ext.data.proxy.WebStorage",
"Ext.window.Window",
"Ext.WindowManager",
"Ext.data.writer.Writer",
"Ext.data.reader.Xml",
"Ext.data.writer.Xml",
"Ext.XTemplate",
"Ext.XTemplateCompiler",
"Ext.XTemplateParser",
"Ext.ZIndexManager",
"Ext.data.XmlStore",
"Ext.data.JsonStore",
"Ext.data.JsonPStore",
"Ext.data.ArrayStore",
"Ext.data.NodeStore",
"Ext.grid.property.Property",
"Ext.panel.Table",
"Ext.layout.Layout",
"Ext.layout.container.Container",
"Ext.layout.component.Component",
"Ext.layout.component.AbstractDock",
"Ext.layout.component.Auto",
"Ext.layout.component.Body",
"Ext.layout.component.BoundList",
"Ext.layout.component.Button",
"Ext.layout.component.Dock",
"Ext.layout.component.Draw",
"Ext.layout.component.Editor",
"Ext.layout.component.FieldSet",
"Ext.layout.component.ProgressBar",
"Ext.layout.component.Tab",
"Ext.layout.component.Tip",
"Ext.layout.component.field.Field",
"Ext.layout.component.field.File",
"Ext.layout.component.field.HtmlEditor",
"Ext.layout.component.field.Slider",
"Ext.layout.component.field.Text",
"Ext.layout.component.field.TextArea",
"Ext.layout.component.field.Trigger",
"Ext.ShadowPool",
"Ext.state.LocalStorageProvider",
"Ext.selection.TreeModel",
"Ext.selection.CellModel",
"Ext.ux.CheckColumn",
"Ext.grid.Lockable",
"Ext.grid.LockingView",
"Ext.grid.feature.AbstractSummary",
"Ext.chart.Callout",
"Ext.chart.Highlight",
"Ext.chart.Navigation",
"Ext.chart.Shape",
"Ext.chart.Tip",
"Ext.chart.TipSurface",
"Ext.chart.theme.Theme",
"Ext.chart.theme.Base",
"Ext.chart.axis.Abstract",
"Ext.chart.axis.Radial",
"Ext.slider.Thumb",
"Ext.util.Memento",
"Ext.direct.Event",
"Ext.direct.RemotingMethod",
"Ext.fx.CubicBezier",
"Ext.fx.Manager",
"Ext.fx.Queue",
"Ext.fx.PropertyHandler",
"Ext.tree.ViewDropZone",
"Ext.tree.ViewDragZone",
"Ext.view.DragZone",
"Ext.view.DropZone",
"Ext.resizer.SplitterTracker",
"Ext.panel.Proxy",
"Ext.panel.DD",
"Ext.grid.header.DragZone",
"Ext.grid.ViewDropZone",
"Ext.util.ElementContainer",
"Ext.util.ProtoElement",
"Ext.util.Renderable",
"Ext.layout.Context",
"Ext.layout.ContextItem",
"Ext.util.Bindable",
"Ext.grid.PagingScroller"
];
2,运行下面页面 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link href="Extjs/resources/css/ext-all.css" rel="stylesheet" />
<script src="Extjs/bootstrap.js"></script>
<script src="Extjs/class.js"></script> </head>
<body>
<script type="text/javascript">
Ext.onReady(function(){ //建立命名管道
Ext.ns("VS.Ext"); var processPrototype=function(s,d){
//处理静态方法
for(var c in s){
if(s.hasOwnProperty(c)){
d[c]="";
}
}
//处理原型
for(var c in s.prototype){
d[c]="";
}
} //处理实例
var processInst=function(s,d){
for(var c in s){
d[c]="";
}
} //处理Ext对象
for(var c in Ext){
if(Ext.hasOwnProperty(c)){
var p=Ext[c];
if(Ext.isObject(p)){
if(!p["$className"]){
if( ["buildSettings","versions","lastRegisteredVersion"].indexOf(c)>= ){
VS.Ext[c]=p;
}
}
}else if(Ext.isFunction(p)){
if(!p["$className"]){
VS.Ext[c]="";
}
}else{
VS.Ext[c]="";
}
}
} //枚举对象
Ext.Array.each(classList,function(classname){
Ext.ns("VS."+classname);
var d=classname.split("."),
sobj=Ext[d[]],
dobj=VS.Ext[d[]];
if(d.length >= ){
sobj=sobj[d[]],
dobj=dobj[d[]];
}
if(d.length == ){
sobj=sobj[d[]];
dobj=dobj[d[]];
}
if(sobj && dobj){
if(Ext.isObject(sobj)){
processInst(sobj,dobj);
}else{
if(sobj.prototype){
processPrototype(sobj,dobj);
}
}
}
}) var html="Ext="+Ext.encode(VS.Ext)+"<br/>";
//处理别名
for(var c in Ext.ClassManager.maps.alternateToName){
html+=c+"="+Ext.ClassManager.maps.alternateToName[c]+"</br>";
} Ext.getBody().dom.innerHTML=html;
})
</script>
</body>
</html>
3复制页面json字符串拷贝到新建的Ext.js文件中
4,增加另一个扩展Jscript.js文件写入/// <reference path="Ext.js" /
5,在页面中增加Jscript.js的引用
Extjs学习笔记--(一vs增加extjs智能感知)的更多相关文章
- Extjs 学习笔记1
学习笔记 目 录 1 ExtJs 4 1.1 常见错误处理 4 1.1.1 多个js文件中有相同的控件,切换时无法正常显示 4 1.1.2 Store的使用方法 4 1.1.3 gridPanel ...
- ExtJs学习笔记之学习小结LoginDemo
ExtJs学习小结LoginDemo 1.示例:(登录界面) <!DOCTYPE html> <html> <head> <meta charset=&quo ...
- Extjs学习笔记--(五,事件)
Extjs中事件包括浏览器事件(单机按钮,鼠标移动等触发)和内部事件(组件之间的联动) 绑定浏览器事件的过程Ext.EventManager 要为元素绑定事件,通常会使用EventManager.on ...
- Extjs学习笔记--(三,调试技巧)
FireFox 1.firedebug(略) 2.illuminations 在illuminations页面可也看到缩写的extjs的代码,同时可以进行相应的调试 3,Firedebug AutoC ...
- extjs 学习笔记(二)
EXTJS实用开发指南 1. 要使用ExtJS 框架的页面中一般包括下面几句: <link rel="stylesheet" type="text/css" ...
- EXTJS学习笔记
由于公司统一决策,决定使用EXTJS作为前台的开发UI框架,所以从今天开始学习EXTJS,对学习过程中遇到的问题做记录. 首先第一个问题:为什么要用ExtJS作为公司开发基础架构? 推荐一篇文章: ...
- [ExtJS5学习笔记]第六节 Extjs的类系统Class System命名规则及定义和调试
本文地址: http://blog.csdn.net/sushengmiyan/article/details/38479079 本文作者:sushengmiyan ----------------- ...
- Extjs学习笔记--(四,基本函数介绍)
Ext是Extjs的命名空间,为Extjs框架提供唯一的全局变量 这样做可以避免冲突,便于代码维护 1,apply和applyif方法 apply=function(object, config, d ...
- Extjs学习笔记--(二)
1.配置实用Extjs <link href="Extjs/resources/css/ext-all.css" rel="stylesheet" /&g ...
随机推荐
- 使用 esxtop 识别存储性能问题
可以使用交互式 esxtop 实用程序提供连接到 VMware ESX 主机的各种设备的 I/O 衡量指标. 使用 esxtop 配置监控 要监控每个 HBA 的存储性能,请执行以下操作: 通过在命令 ...
- 一款基于jquery滑动后固定于顶部的导航
之前已为大家介绍了好多css3实现的导航菜单.今天分享一款基于jquery滑动后固定于顶部的导航.这款导航的特点是初始位于顶部下面一百个像素,当鼠标滚动时到下方,导航一直处于顶部.效果图如下: 在线预 ...
- C#基础-获得当前程序的 空间名.类名.方法名
string typeName = this.GetType().ToString();//空间名.类名 string typeName = this.GetType().Name;//类名 new ...
- 【C#/WPF】ListView的MVVM例子,及禁止拖动ListView的头部Header
一个ListView的MVVM简单例子: <ListView ItemsSource="{Binding GoodsList}" Margin="0,10,0,10 ...
- PDNN中数据格式和数据装载选项
吃人家嘴短,拿人家手短,用别人的东西就不要BB了,按规矩来吧. 训练和验证的数据都在命令行以变量的形式按如下方式指定: --train-data "train.pfile,context=5 ...
- linux下tree命令详解
linux下tree命令详解linux下的tree就比较强大了,但一般系统并不自带这个命令,需要手动下载安装:sudo apt-get install tree .文件很小,只有31K,但功能可强大了 ...
- golang http.Redirect()函数容易误解的地方
调用http.Redirect()函数后,并不会立刻进行跳转,而是继续顺序执行函数中的所有的代码后,再进行跳转.但是Redirect后面的写界面的代码不会发送到游览器前端的. 代码如下:func Ch ...
- iOS边练边学--UIScrollView和xib文件实现简单分页+定时器初使用
一.xib文件构成 二.自定义控件类(xib文件与自定义控件类的文件名字相同,并且将xib文件中父类控件的类名改成自定义控件类的名称) ***********自定义控件类需要的属性********** ...
- windows rails new demo时候出错Make sure that `gem install mysql2 -v '0.3.15'` succeeds before bundling.
rails new demo --database=mysql最后报错Gem files will remain installed in D:/BillFiles/rails_dev/Ruby193 ...
- 标题添加菜单HeaderContextMenu
<!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>Co ...