update code

pull/2698/head
sight 2025-07-11 15:12:29 +08:00
parent 7fff7bf15b
commit b4f8b63768
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ layui.define(['lay', 'i18n'], function(exports) {
return str;
}
let result = '';
for (let i = 0; i < str.length - 1; i++) {
var result = '';
for (var i = 0; i < str.length - 1; i++) {
var char = str[i];
var nextChar = str[i + 1];
result += char;