Skip to content

Commit da02ce3

Browse files
isxiaoxinBeiQiaoT
authored andcommitted
fix: 修复部分代码注释里英文单词拼写错误的问题
1 parent 24b1e5b commit da02ce3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

uview-ui/libs/function/guid.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* v-for的时候,推荐使用后端返回的id而不是循环的index
77
* @param {Number} len uuid的长度
88
* @param {Boolean} firstU 将返回的首字母置为"u"
9-
* @param {Nubmer} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
9+
* @param {Number} radix 生成uuid的基数(意味着返回的字符串都是这个基数),2-二进制,8-八进制,10-十进制,16-十六进制
1010
*/
1111
function guid(len = 32, firstU = true, radix = null) {
1212
let chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
@@ -29,7 +29,7 @@ function guid(len = 32, firstU = true, radix = null) {
2929
}
3030
}
3131
}
32-
// 移除第一个字符,并用u替代,因为第一个字符为数值时,该guuid不能用作id或者class
32+
// 移除第一个字符,并用u替代,因为第一个字符为数值时,该guid不能用作id或者class
3333
if (firstU) {
3434
uuid.shift();
3535
return 'u' + uuid.join('');

uview-ui/libs/mixin/mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ module.exports = {
4848
uni.$emit('uOnReachBottom')
4949
},
5050
beforeDestroy() {
51-
// 判断当前页面是否存在parent和chldren,一般在checkbox和checkbox-group父子联动的场景会有此情况
51+
// 判断当前页面是否存在parent和children,一般在checkbox和checkbox-group父子联动的场景会有此情况
5252
// 组件销毁时,移除子组件在父组件children数组中的实例,释放资源,避免数据混乱
5353
if(this.parent && uni.$u.test.array(this.parent.children)) {
5454
// 组件销毁时,移除父组件中的children数组中对应的实例

uview-ui/libs/util/async-validator.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)