Kangda

Results 3 comments of Kangda

但怎么跟html中的元素class名对应起来呢?比如,在`css`中定义了: ``` :local(.box) { ... } ``` 在`html`文件中: ``` ``` 这样做的话,`div.box`没有发现对应的`css`属性。这个怎么解决?

楼主,有个问题想问一下。`throttle` 的实现中,为什么需要判断时间间隔没到,就通过 `clearTimeout` 取消掉? ```js // 如果距离上次执行 fn 函数的时间小于 threshhold,那么就放弃 // 执行 fn,并重新计时 if (last && now < last + threshhold) { clearTimeout(timer) // 保证在当前时间区间结束后,再执行一次 fn timer = setTimeout(function ()...

It can't pretty colorful errors created by `throw` statement, so you should invoke the api `withoutColors` to disable colors