`
chuanru920
  • 浏览: 7829 次
  • 性别: Icon_minigender_1
  • 来自: 北京
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
xt.Class 属性详解 : 1 ,  alias : 相当于别名一样,可以起多个,可以通过xtype和Ext.widget()创建实例:   Js代码   Ext.define(
1.)直接或间接继承自 Ext.Component的类例如:Ext.define('Tyds.Datetime', { extend: 'Ext.panel.Panel', kind: null, textname1: null, textname2: null, initComponent: function() {       if (!this.kind) {    alert("必须提供你需要的控件类型");      }      if (!this.textname1) {    alert("必须提供输入框名");      }      ...
 prototype 是只有在new 出现的时候在会起作用       function A() { this.ab = function () { alert("ab方法"); } }; A.prototype.abc = function() { alert("abc方法"); }; var B = new A(); B.ab(); B.abc();   为什么这俩个方法都可以找的到呢? 一般的疑问是在B.abc();为什么可以找的到, 而实际上B.ab();找的到才是转了 ...
在学习JS的面向对象过程中,一直对constructor与prototype感到很迷惑,看了一些博客与书籍,觉得自己弄明白了,现在记录如下:      我们都知道,在JS中有一个function的东西。一般人们叫它函数。比如下面的代码 js代码:   view plain copy to clipboard print ?
[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 would still override initComponent if you want to do anything after the base class initComponent is ...
Js函数其实是个对象,但我总拿它和Java的方法一样对待,因为它的写法明明就是一个“函数”。          其实我们常用的定义函数的写法只是写法之一,写法其实有三种:          1 声明式的(静态的)        2 对象式的(动态的)        3 字面量式的(也被称为函数表达式)        下面分别介绍一下。        1 声明式的        写法:function func(param1,param2…){…};        这是最常用的,它是静态的,和Java的静态方法类似,在页面加载时就被解析,且只解析一次。这个我就不细说了,程序员都知道。    ...
用的5个jar包: commons-logging.jar dom4j-1.6.1.jar dwr.jar jdom.jar xerces.jar web.xml: <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quo ...
Global site tag (gtag.js) - Google Analytics