摘要:
//数组去重Array.prototype.unique = function() { var newArr = [], hash = {}; for(var i=0, len=this.length; i<len; i++) { if(!hash[this[i]]) { ... 阅读全文
摘要:
转载自http://blog.csdn.net/xujiaxuliang/archive/2009/10/21/4708353.aspxnull 与 undefined 区别:null 是js的保留字(独一无二的值),可以理解为无对象(因为typeof null =='object'),当null在... 阅读全文