ochenkai

Results comments of ochenkai

``` randomNum(max, min, len, arr) { if (len > arr.length) { let num = Math.floor(Math.random()*(max - min + 1)) + min if(!arr.includes(num)){ arr.push(num) } this.randomNum(max, min, len, arr) } }...

这个问题没人答,是因为题意不明吧。是不是打错字了?

解释下react中component和pureComponent两者的区别是什么? 组件的state或者props更新都会触发render(),同时也会导致子组件render()重新渲染;当我们不想子组件更新时,需要手动在shouldUpdateComponent当中返回false;pureComponent帮我们做了这部分工作

简单的随机从000000到FFFFFF的话,可以这么写: ``` randomColor() { var colorCount = 256*256*256 var color = Math.floor(Math.random()*colorCount); color = '#'+color.toString(16) return color } ```

resolving... 在 2015-12-19 11:08:47,"germ1107" [email protected] 写道: I also encountered the same problem. But only in iOS9 — Reply to this email directly or view it on GitHub.