可用方法
ArrayIsEqual(arr1, arr2) {
if (!arr1 || !arr2) {
return false;
}
if (arr1.length !== arr2.length) {
return false;
}
for (var i = 0; i < arr1.length; i++) {
if (arr1[i] instanceof Array && arr2[i] instanceof Array) {
if (!arr1[i].equals(arr2[i]))
return false;
} else if (arr1[i] !== arr2[i]) {
return false;
}
}
return true;
},