William Chew

Results 4 comments of William Chew

写了段代码测试下。 ``` Number(0.1+0.2).toString(2) \\ "0.0100110011001100110011001100110011001100110011001101" Number(0.3).toString(2) \\"0.010011001100110011001100110011001100110011001100110011" 0.1 + 0.2 \\ 0.30000000000000004 Number(0.1+0.2).toString(2).length \\54 ```

设置里勾上 Decode Escaped Unicode Characters

`Object.entries($$('*').map(it => it.tagName.toLowerCase()).reduce((cntArr, tag) => { cntArr[tag] = cntArr[tag] ? cntArr[tag] + 1 : 1; return cntArr }, {})).reduce((x, y) => x[1] > y[1] ? x : y)`

`new Set($$('*').map(it => it.tagName.toLowerCase()))`