摘要: 1 /** 2 * Created by Administrator on 2015/4/14. 3 */ 4 function Set() { 5 this.values = {}; 6 this.n = 0; 7 this.add.apply(this, argum... 阅读全文
posted @ 2015-04-14 22:41 徐大腿 阅读(289) 评论(0) 推荐(0) 编辑
摘要: function classof(o){ return Object.prototype.toString.call(0).slice(8,-1);}Function.prototype.getName= function () { return this.name ||this.toStr... 阅读全文
posted @ 2015-04-14 21:27 徐大腿 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 1 var arr=[1,[[[7,2],8,9],3]]; 2 function f(arr) { 3 if (Object.prototype.toString.call(arr) != "[object Array]") 4 return; 5... 阅读全文
posted @ 2015-04-14 17:51 徐大腿 阅读(245) 评论(0) 推荐(0) 编辑