12 2021 档案
摘要:getArrayIndex(arr, obj) { var i = arr.length; while (i--) { if (arr[i] obj) { return i; } } return -1; },
阅读全文
摘要:ArrayIsEqual(arr1, arr2) { //判断2个数组是否相等 if (arr1 arr2) { //如果2个数组对应的指针相同,那么肯定相等,同时也对比一下类型 return true; } else { if (arr1.length != arr2.length) { retu
阅读全文
摘要:handleIncludes(childArr, fatherArr) { return childArr.every(v => fatherArr.includes(v)); }, let target = this.handleIncludes(this.commonSignalList[n],
阅读全文
摘要:handleIncludes(childArr, fatherArr) { return childArr.every(v => fatherArr.includes(v)); }, let arr = [1,2] let brr = [1,2,3] let target = this.handle
阅读全文
摘要:// 地图初始化 initMap() { let vm = this; //地图加载 this.map = new AMap.Map("map", { viewMode: "2D", zoom: 4, center: [105, 36], resizeEnable: true }); let aut
阅读全文
摘要:export const option6 = { title: { text: "充电开始时段分布", x: "left", textStyle: { fontSize: 16, fontStyle: "normal", fontWeight: "normal", color: "#33528D",
阅读全文