2012年8月23日

摘要: 这是司徒正美收集的js判断是否是数组的方法:http://www.cnblogs.com/rubylouvre/archive/2009/09/15/1567338.htmlDouglas Crockford的版本var isArray = function(a){ return a && typeof a === 'object' && typeof a.length === 'number' && typeof a.splice === 'function' && !(a.pro 阅读全文
posted @ 2012-08-23 01:22 洞庭啸月 阅读(493) 评论(0) 推荐(0)

导航