自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 [转]ext.class

xt.Class 属性详解 : 1 ,  alias : 相当于别名一样,可以起多个,可以通过xtype和Ext.widget()创建实例:   Js代码   Ext.define('SimplePanel', {       extend: 'Ext.panel.Panel',       alias: ['widget.simplepanel_007','w...

2011-09-23 14:58:40 100

原创 Ext4.0 里, 有关如何定义和使用类

1.)直接或间接继承自 Ext.Component的类例如:Ext.define('Tyds.Datetime', { extend: 'Ext.panel.Panel', kind: null, textname1: null, textname2: null, initComponent: function() {       if (!this.kind) {    alert("必须提...

2011-09-23 11:57:15 97

js prototype 和constructor

 prototype 是只有在new 出现的时候在会起作用       function A() { this.ab = function () { alert("ab方法"); } }; A.prototype.abc = function() { alert("abc方法"); }; var B = new A(); B.ab(); ...

2011-09-22 15:53:31 98

原创 [转]js constructor和prototype

在学习JS的面向对象过程中,一直对constructor与prototype感到很迷惑,看了一些博客与书籍,觉得自己弄明白了,现在记录如下:      我们都知道,在JS中有一个function的东西。一般人们叫它函数。比如下面的代码 js代码:   view plain copy to clipboard print ? function  Person(...

2011-09-22 11:26:02 104

原创 initComponent在ext4中的作用

[size=medium]First off, the ability to override via constructor was added in a later version of Ext than initComponent , so all code of a certain age would have to use initComponent. These days, you...

2011-09-22 11:04:42 185

原创 js里的function其实是个对象

Js函数其实是个对象,但我总拿它和Java的方法一样对待,因为它的写法明明就是一个“函数”。 其实我们常用的定义函数的写法只是写法之一,写法其实有三种: 1 声明式的(静态的) 2 对象式的(动态的) 3 字面量式的(也被称为函数表达式) 下面分别介绍一下。 1 声明式的 ...

2011-09-15 14:26:05 421

原创 dwr的小例子

用的5个jar包: commons-logging.jar dom4j-1.6.1.jar dwr.jar jdom.jar xerces.jar web.xml:   dwr-invoker   org.directwebremoting.servlet.DwrServlet      debug   true            dwr-invok...

2011-09-08 11:15:34 71

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除