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://codercto.com/soft/d/2359.html

程式之美-微軟技術面試心得

程式之美-微軟技術面試心得

編程之美小 / 悅知文化 / 2008.06.20 / 490元

書內容分為以下幾個部分: ▓ 遊戲之樂:從遊戲和其他有趣問題出發,化繁為簡,分析總結。 ▓ 數字之魅:程式設計的過程實際上就是和數字及字元打交道的過程。這一部分收集了一些這方面的有趣探討。 ▓ 結構之法:彙集了常見的對字串、鏈表、佇列,以及樹進行操作的題目。 ▓ 數學之趣:列舉了一些不需要寫具體程式的數學問題,鍛煉讀者的抽象思考能力。 ▓ 書中絕大部分題目都提供了詳細......一起来看看 《程式之美-微軟技術面試心得》 这本书的介绍吧!

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具