分不出来null, object, date, window
function arraysSimilar(arr1, arr2)
{ var len = arr1.length
, len2 = arr2.length
, str = "判定结果:通过"
, str2 = "判定结果:不通过"
, str3 = ''
, str4 = '';
var flag = (len == len2)? true: false;
if (flag) {
return str2;
};
for (var i = 0; i< len; i++) {
str3 += typeof arr1[i];
str4 += typeof arr2[i];
};
if ( str3 == str4) {
return str;
}
return str2;
}