Results 5 comments of [email protected]

```javascript function throttle(func, wait) { let context, arges; let prevous = 0; return function () { let now = new Date(); context = this; arges = arguments; if (now -...

/* 手写代码实现`kuai-shou-front-end=>KuaiShouFrontEnd` */ function handler(str){ return str.split('-').map(item=>item.substr(0,1).toUpperCase()+item.substr(1)).join('') } console.log(handler('kuai-shou-front-end'))