摘要: Hash是Prototype作者扩展出来的一个数据类型。本质上他就是一个普通的javascript对象(注:不要纠结什么javascript变量都是对象,这里说new Object()那种),然后在这个对象上面扩展出来一些其他的方法。基本原理基本的原理的代码说明就是: function Hash(object){ this._object = object; } Hash.prototype = { constructor : Hash, method_1 : function(){//this._object}, me... 阅读全文
posted @ 2012-01-31 13:27 西山 阅读(2335) 评论(0) 推荐(1) 编辑