导航

2013年7月11日

摘要: getDom方法能够得到文档中的DOM节点,该方法中包含一个参数,该参数可以是DOM节点的id、DOM节点对象或DOM节点对应的Ext元素(Element)等。 (与getElementById是一个效果)•Ext.onReady(function(){var e=new Ext.Element("hello");Ext.getDom("hello");Ext.getDom(e);Ext.getDom(e.dom);});•//Html页面中包含一个id为hello的div,代码如下:aaa•在上面的代码中,Ext.getDom("hello& 阅读全文

posted @ 2013-07-11 15:32 潘小博1992 阅读(244) 评论(0) 推荐(0) 编辑