如何判断数组中的成员类型
var arr = [function(){}, null, [1,2,3], "4578", 2, false];var typeName = "";for(key in arr){ typeName += typeof(arr[key]) + ", ";}document.write(typeName);
js数据类型判断和数组判断