zhangenming

Results 50 comments of zhangenming

https://codesandbox.io/s/wandering-breeze-jx8g89?file=/src/index.js ![1657932240(1)](https://user-images.githubusercontent.com/21235555/179327563-37e42436-6b94-492f-8674-e5488930a27c.png) use devtool perfermance analyse it, you will find this code,`d1` will cause domdiff, when click button; but d2 https://codesandbox.io/s/affectionate-zhukovsky-rutjbj different

'实际上,内联脚本始终会阻止解析器,除非您编写额外代码来推迟它们的执行。' type="module"的内联脚本默认defer, 不会阻止解析器

Function.prototype() 为什么可以直接执行 执行结果是什么? typeof Function.prototype 结果是function Function.prototype instanceof Function 结构false

有那么复杂么, 我认为就一句话, 箭头函数没有"自己"的this, this的值是父级函数的值

or`mapState(["key1"], {key2 :'key3'}, ...) `

```javascript var multip0 = num => ''.padEnd(num).repeat(7).length ``` ```javascript var multip1 = num => [0, 7, 14, /*我有一个绝佳的想法, 可惜这里地方太小写不下...*/][num] ``` ```javascript var multip2 = num =>new Array(num).fill().map(()=> new Array(7).fill()).flat().length ```

**总结** ```javascript function print0(n){ setTimeout(() => { console.log(n); }, 0, Math.floor(Math.random() * 1000));//关闭延迟 } function print1(n) { setTimeout( (() => { console.log(n) })(), Math.floor(Math.random() * 1000), //自执行 ) } function...

I reinstalled my editor several times because I thought there was something wrong with it :(

js从cdn上远程加载, 平常使用正常版本, 被evil了就发行eval版本