typeof 不能判断 arr undefined null ...
1.arr.constructor==Array
2.arr instanceof Array
3.Object.prototype.toString.call(arr)=='[object Array]'