曾浩

Results 74 comments of 曾浩

说个兼容性比较好的,当然最简单的方式还是基于 new Set ```js [1,2,3,4,4,5,5,2].filter((item, index, arr) => arr.indexOf(item) === index) ```

赞,目前已知的优化方式都在这里了

> I have MediaTek Tiangui 9000, same problem moonlight: 20-30ms latency parsec: 5~8ms latency

hi,非常感谢。 如果可以能提个PR不,这个项目我很久没维护了。 发自我的 iPhone > 在 2016年1月8日,18:32,zhoulijie [email protected] 写道: > > https://githubcom/think2011/mock-angular/blob/gh-pages/src/mockangularjs > 第18行, > Mockmock('http://wwwbaiducom?a=1', { > 'name': '@name()', > 'age|1-100': 100, > 'color': '@color' > }); > 如果参数是?a=1,那么就匹配失败,建议"?"转义一下...

@XadillaX 啊,我看不懂。 : (

``` javascript function once(fn) { var times = 1; return function () { --times || fn.apply(console, arguments); } } // 测试用例 logOnce = once(console.log); logOnce('foo'); // foo logOnce('bar'); // null...

@VaJoy 咦,哪里用到了ES6的特性,感兴趣!