function isEqualArrays(ax, bx) {
if (ax != undefined && bx != undefined) {
if (ax.length = !bx.length) {
console.log(ax.length)
console.log(bx.length)
return false;
}
else {
for (i = 0; i < ax.length; i++) {
if (ax[i] != bx[i]) {
console.log(ax[i] + bx[i] + "\n");
return false;
}
}
return true;
}
}
else {
console.log("ax bx 不能为undefined")
return false
}
}
var a = []
var b = []
console.log(a.length + typeof a)
console.log(b.length + typeof b)
if (isEqualArrays(a, b)) {
console.log(1)
}
else {
console.log(2);
}