Ext.Net 1.2.0_Ext.Net 中可以直接使用 Ext JS 的方法和属性

Ext 命名空间是个全局对象,在它下封装了 Sencha 库提供所有的类、单件和工具方法。

大多数接口组件位于一个底层的命名空间中,但是很多公共的工具方法都作为了 Ext 命名空间的一个直接的属性。

另外,其他类中经常使用的方法也放在了 Ext 命名空间中。例如,Ext.getCmp 是 Ext.ComponentManager.get 的别名。
很多应用程序用 Ext.onReady 来初始化,一旦DOM准备好了,它就会被调用。这确保所有的脚本都已经被装载,防止脚本互相依赖。例如:

   1: Ext.onReady(function(){
   2:        new Ext.Component({
   3:            renderTo: document.body,
   4:            html: 'DOM ready!'
   5:        });
   6:    });

参考:

The Learning Center
The FAQ

The forums

属性

属性:返回类型 说明
BLANK_IMAGE_URL : String 这个 URL 指向一个 Ext 使用的 1×1 大小的透明图片,用于创建 CSS 背景图片使用的内置图标。在老版本的IE中,默认指向 "http://sencha.com/s.gif" ,你应该改变这个链接指向你服务器的一个 URL。对于其他浏览器,它使用一个内置数据 URL。
SSL_SECURE_URL : String URL to a blank file used by Ext when in secure mode for iframe src and onReady src to prevent the IE insecure content warning ('about:blank', except for IE in secure mode, which is 'javascript:""').
USE_NATIVE_JSON : Boolean Indicates whether to use native browser parsing for JSON methods. This option is ignored if the browser does not support native JSON methods. Note: Native JSON methods will not work with objects that have functions. Also, property names must be quoted, otherwise the data will not parse. (Defaults to false)

enableFx : Boolean

Ext.fx.Anim 类是否可用。如果可用,则返回 "True"

enableGarbageCollector : Boolean

是否自动定期清空不再使用的 Ext.core.Elements 。默认为true。

enableListenerCollection : Boolean

垃圾回收时,是否自动清除事件监听。默认为 true。

enableNestedListenerRemoval : Boolean

实验性属性。当移除一个元素时,如果级联监听器移除子元素,那么为 "True"

enumerables : Array

包含老浏览器额外 enumerables 的一个数组。

isChrome : Boolean

探测客户端是否为 Chrome 浏览器。“是”则返回 "True"

isFF3_0 : Boolean

探测客户端是否为 FireFox 3.0。“是”则返回 "True"

isFF3_5 : Boolean

探测客户端是否为 FireFox 3.5。“是”则返回 "True"

isFF3_6 : Boolean

探测客户端是否为 FireFox 3.6。“是”则返回 "True"

isGecko : Boolean

探测客户端浏览器是否使用 Gecko 布局引擎,如,Mozilla、Firefox。“是”则返回 "True"

isGecko3 : Boolean 探测客户端浏览器是否使用 Gecko 1.9+ 布局引擎,如,Firefox 3.x。“是”则返回 "True"
isGecko4 : Boolean

探测客户端浏览器是否使用 Gecko 2.0+ 布局引擎,如,Firefox 4.x。“是”则返回 "True"

isIE : Boolean

探测客户端是否为 IE。“是”则返回 "True"

isIE6 : Boolean

探测客户端是否为 IE 6.x。“是”则返回 "True"

isIE7 : Boolean

探测客户端是否为 IE 7.x。“是”则返回 "True"

isIE8 : Boolean

探测客户端是否为 IE 8.x。“是”则返回 "True"

isIE9 : Boolean

探测客户端是否为 IE 9.x。“是”则返回 "True"

isLinux : Boolean

探测平台是否为 Linux。“是”则返回 "True"

isMac : Boolean

探测平台是否为 Mac OS。“是”则返回 "True"

isOpera : Boolean

探测客户端是否为 Opera。“是”则返回 "True"

isOpera10_5 : Boolean

探测客户端是否为 Opera 10.5x。“是”则返回 "True"

isReady : Boolean

True when the document is fully initialized and ready for action

isSafari : Boolean

探测客户端是否为 Safari。“是”则返回 "True"

isSafari2 : Boolean

探测客户端是否为 Safari 2.x。“是”则返回 "True"

isSafari3 : Boolean

探测客户端是否为 Safari 3.x。“是”则返回 "True"

isSafari4 : Boolean

探测客户端是否为 Safari 4.x。“是”则返回 "True"

isWebKit : Boolean

探测客户端是否为 WebKit。“是”则返回 "True"

isWindows : Boolean

探测平台是否为 Windows。“是”则返回 "True"

scopeResetCSS : Boolean

True to scope the reset CSS to be just applied to Ext components. Note that this wraps root containers with an additional element. Also remember that when you turn on this option, you have to use ext-all-scoped { unless you use the bootstrap.js to load your javascript, in which case it will be handled for you.

useShims : Boolean By default, Ext intelligently decides whether floating elements should be shimmed. If you are using flash, you may want to set this to true.
webKitVersion : Float

WebKit 的当前版本。如果浏览器不使用 WebKit,则为-1。

posted @ 2011-08-09 23:29  船长&CAP  阅读(667)  评论(0编辑  收藏  举报
免费流量统计软件