Qiang

Results 6 comments of Qiang

先实现: ```js function count(n) { let res = 0; for (let i = 0; i { if (item === '1') { res += 1; } }) }; return res; }...

> 先实现: > > ```js > function count(n) { > let res = 0; > for (let i = 0; i `${i}`.split('').forEach(item => { > if (item === '1') {...

```js const array = [2, 0, 1, 4, 0, 0, 0, 5, 7, 8]; array.sort((fir, sec) => { return fir === 0; }) // array = [ 2, 1, 4,...

@kingstone3 我用node运行的是可以,后面放到chrome果然结果不一样。。。没有safari。。。没有试具体结果 ```js // 换成这样后,在chrome第一次是输出全部相反的顺序,再运行一次sort,才会把顺序变回来 const array = [0, 2, 0, 1, 4, 0, 0, 0, 5, 7, 8]; array.sort((fir, sec) => { return (fir === 0) ? 1 :...

总结了一下 https://wz71014q.github.io/2019/03/23/CSS-%E5%8F%AF%E8%A7%86%E5%8C%96%E6%A0%BC%E5%BC%8F%E6%A8%A1%E5%9E%8B/#more

I guess that there is an incompatibility with the system.