同后台修改
This commit is contained in:
@ -370,8 +370,8 @@
|
||||
}
|
||||
|
||||
//如果前面部分都对得上,但是长度不同,则差异是长度
|
||||
if(difference == 0 && str1.length != str2.length){
|
||||
difference = Math.abs(str1.length - str2.length)
|
||||
if(str1.length != str2.length){
|
||||
difference += Math.abs(str1.length - str2.length)
|
||||
}
|
||||
// 同样遍历字符串2,处理字符串1中不存在的字符
|
||||
/*for (let i = 0; i < str2.length; i++) {
|
||||
|
Reference in New Issue
Block a user