luhaifeng666

Results 48 comments of luhaifeng666

``` function getFormatedArr(str = null) { if (str) { let arr = str.split(","), cpNum = null, cpIndex = 0, resArr = []; arr.forEach((num, index) => { if (!index) { cpNum...

Hello Tom 作用域链,在当前函数下没有找到name的定义,去window下面找,找到了name的定义,此时name不是undefined,所以执行console.log('Hello ' + name);

如果直接把这个数组new Set去重,然后再取随机的个数呢

> Great work! Maybe you can add a link to your work here? > > https://github.com/obsidianmd/obsidian-docs/blob/master/zh/%E9%AB%98%E7%BA%A7%E7%94%A8%E6%B3%95/%E7%AC%AC%E4%B8%89%E6%96%B9%E6%8F%92%E4%BB%B6.md I'm glad to hear that~🥳 Here is the [PR](https://github.com/obsidianmd/obsidian-docs/pull/256).

Some people have raised the issue of incomplete documentation, so I have added a comment module for the developers to discuss and improve the documentation.

Version 2.0 documents are being translated.

[V2.0](https://luhaifeng666.github.io/obsidian-plugin-docs-zh/zh2.0/) translation completed.

> 这个overflow:hidden再这里具体作用是什么呢? 防止不同浏览器表现形式不一样,可能会出现滚动条

'1 2 3 3 4'.split(' ').join('')