guanxc9876

Results 5 comments of guanxc9876

这种原型的用途是什么呢。。。

getTree(data) { const backArr = JSON.parse(JSON.stringify(data)).reverse() let childArr = [] let treeArr = [] function recursion(arr1) { if (arr1.length === 1) { arr1[0].children = childArr treeArr = JSON.parse(JSON.stringify(arr1)) } else...

randomString() { let arrSize = 0 let code = '' const arrSet = new Set() while (arrSize < 1000) { code = Math.floor(Math.random() * 1000000) + '' code.length === 6...

移出字符串的字母为啥还得要二分法。。。

getValue() { const valList = [] function handleLetter(str, idx) { if ((str[idx] >= 'a' && str[idx] = 'A' && str[idx] high) return const mid = Math.floor((low + high) / 2)...