bubbleSort(arr) {
console.log(arr);
let that = this;
let ck = true;
let arr_copy = arr.concat();
console.log("----length--", arr.length);
for (var i = 0; i < arr.length; i++) {
arr_copy.shift();
for (var j = 0; j < arr_copy.length; j++) {
// console.log(i, j);
// console.log(arr[i], arr_copy[j]);
if (that.isOverlap(arr[i], arr_copy[j])) {
return (
arr[i]["mark"] + " 与 " + arr_copy[j]["mark"] + " 区域重合,请修改"
);
}
}
}
return 1;
},