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


浙公网安备 33010602011771号