摘要:
判断是否为数组1 var is_array = function(value) {2 return value && typeof value === 'object' && typeof value.length === 'number' && typeof value.splice === 'function' && !(value.propertyIsEnumerable('length'));3 };4 5 //使用方法6 var arrayValue = [ 阅读全文
posted @ 2012-07-15 16:51
小猩猩君
阅读(185)
评论(0)
推荐(0)

浙公网安备 33010602011771号