JavaScript框架 Archetype

码农软件 · 软件分类 · AJAX框架/RIA · 2019-03-28 18:58:12

软件介绍

Archetype 是一个面向对象的 JavaScript 框架和 Ajax 框架。

示例代码:

Archetype.Component.create({
name:"Sample.components.foobar",
/**
* Set up the Component dependencies
*/
setup:{
dependencies: {
components:{},
lib:[]
}
},
/**
* Constructor
*/
initialize: function () {
Logger.log("foobar has been instantiated!");
$(document.body).observe("click", this.createDate);
Logger.log("a click handler on the body of your page has been registered");
},
/**
* Private method which launch the DateUpdate event
* with the current date in parameter
*/
_createDate : function () {
this.fireDateUpdate(new Date());
},
/**
* Fire a "DateUpdate" event
*/
fireDateUpdate: _,
/**
* Listen to "DateUpdate" event
*/
onDateUpdate: function(eventName, date) {
Logger.log("foobar has received a date:" + date);
}
})

本文地址:https://www.codercto.com/soft/d/2359.html

Object-Oriented Design Heuristics

Object-Oriented Design Heuristics

Arthur J. Riel / Addison-Wesley Professional / 1996-05-10 / USD 64.99

Product Description Here is the first object-oriented development book to provide specific experience-based guidelines to help developers make the right design decisions. This book offers the next ......一起来看看 《Object-Oriented Design Heuristics》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

随机密码生成器
随机密码生成器

多种字符组合密码

SHA 加密
SHA 加密

SHA 加密工具