摘要: var YX = { //得到JS内置数据类型的类型,返回值包括[Date,RegExp,Number,String,Array,Boolean,Function,null,undefined,Object] getType : function(obj){ return obj == null ? obj + "" : Object.prototype.toString.call(obj).slice(8,-1); } //创建一个简单的类 ,createClass : function(){ return function(){ this.init.apply(this 阅读全文
posted @ 2011-05-25 14:41 simayixin 阅读(494) 评论(0) 推荐(0) 编辑