yiminghe
yiminghe
can just be simplified to ``` ``` ``` js const spreadReg = /^\.\.\.[\w$_]/; const objReg = /^[\w$_](?:[\w$_\d\s]+)?:/; const es2015ObjReg = /^[\w$_](?:[\w$_\d\s]+)?,/; // {a:1}, {...a}, {a,b} not {[a,1,2]}, {x}, { x...
这个是运行时处理,可能性能不好
需要一个出错例子。 另外直接在 getVisibleRectForElement 函数开头判断是不是就行了,不进入 while
use this instead ``` js button text ```
突然发现是之前提的 chrome bug... https://code.google.com/p/chromium/issues/detail?id=120132 https://code.google.com/p/chromium/issues/detail?id=536905
这个是个后期优化模式,相当于压缩,可以加个参数支持,
删除 .eslintrc, lint 按照默认的来。。。
> We need a test case, please add test cases updated
> For fixing tests for OLD API just use `OLD_API=1 npm run test:only` passed