上传同步后台修改

This commit is contained in:
2024-11-06 16:14:10 +08:00
parent e919d0136d
commit 1e305b1734

View File

@ -368,12 +368,17 @@
difference++; difference++;
} }
} }
//如果前面部分都对得上,但是长度不同,则差异是长度
if(difference == 0 && str1.length != str2.length){
difference = Math.abs(str1.length - str2.length)
}
// 同样遍历字符串2处理字符串1中不存在的字符 // 同样遍历字符串2处理字符串1中不存在的字符
for (let i = 0; i < str2.length; i++) { /*for (let i = 0; i < str2.length; i++) {
if (str1.indexOf(str2[i]) === -1) { if (str1.indexOf(str2[i]) === -1) {
difference++; difference++;
} }
} }*/
return difference; return difference;
}, },
legalRate(rateList) { // 合法的 税率 legalRate(rateList) { // 合法的 税率