/** * package junit */ 'package junit'.j(function () { /** * @class junit.Observable */ 'class Observable'.j({ /** * @constructor * @param config */ hidden:true, constructor: function (config) { var jthis = this; $.extend(jthis, config); }, addEvents: function (o) { } }); }); 'package jui'.j(function () { /** * @class jui.Component * @extends junit.Observable */ 'class Component implements junit.Observable'.j(function (jsuper, ob) { jstatic(jsuper, { AUTO_ID: 1000 }); // project jprotected(jsuper, { getId: function () { return this.id || (this.id = 'jc-' + (++this.jstatic.AUTO_ID)); } }); // publc vars jpublic(jsuper, { hidden: false }); // publc method jpublic(jsuper, { constructor: function (config) { $.extend(this, config); jcall(ob, this); this.initComponent(); }, initComponent: $.noop, afterRender: $.noop, render: function (container, position) { if (!this.rendered && this.fireEvent('beforerender', this) !== false) { if (!container && this.el) { this.el = $.get(this.el); container = this.el.dom().parentNode; this.allowDomMove = false; } this.container = $.get(container); } return this; } }); }, 'component'); });
相关推荐
JavaScript作为一门浏览器语言的核心思想;面向对象编程的基础知识及其在... 《JavaScript面向对象编程指南》着重介绍JavaScript在面向对象方面的特性,展示如何构建强健的、可维护的、功能强大的应用程序及程序库
《Javascript面向对象编程指南》着重介绍Javascript在面向对象方面的特性,展示如何构建强健的、可维护的、功能强大的应用程序及程序库。 全书包括8章和3个附录,依次介绍了Javascript的发展历史...
资源名称:JavaScript面向对象编程指南(第2版)内容简介:1.本书是唯一一本介绍Javascript面向对象编程的图书。2.本书作者是知名的Web开发人员和作者。受到国内众多前端开发人员,如淘宝UED团队的推崇和推荐...
JavaScript面向对象编程指南是完整的扫描版...
JavaScript面向对象程序设计(1): 前言 JavaScript面向对象程序设计(2): 数组 JavaScript面向对象程序设计(3): 对象 JavaScript面向对象程序设计(4): 函数 JavaScript面向对象程序设计(5): 类 JavaScript面向对象程序...
javascript面向对象编程指南 2nd英文版,英文名:Object-Oriented JavaScript。 What you will learn from this book The basics of object-oriented programming, and how to apply it in the JavaScript ...
NULL 博文链接:https://goyourauntie.iteye.com/blog/1179204
资源名称:Javascript面向对象编程 内容简介: 从语言的视角来看,面向对象的程序设计和面向对象的Javascript 语言绝对不是什么摩登的 东西;Javascript 最开始就是被设计成一...
JavaScript面向对象编程指南 pdf,学习JavaScript实用,难得。
JavaScript面向对象编程.pdf
JavaScript面向对象编程指南完整版是扫描的....