完成拖动排序

This commit is contained in:
2023-11-02 20:48:30 +08:00
parent 29893bf97a
commit 726c1a4769
3 changed files with 30 additions and 12 deletions

View File

@@ -2425,6 +2425,16 @@
} else {
replaceCallback(code);
}
},
randdomString(len) {
len = len || 32;
var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678';
var maxPos = $chars.length;
var pwd = '';
for (var i = 0; i < len; i++) {
pwd += $chars.charAt(Math.floor(Math.random() * maxPos));
}
return pwd;
}
};