kscript

Results 2 comments of kscript

```js let strTel = ' +86 132-0803-3621 '; // 首尾空格 let tel = strTel.replace(/(^\s+|\s+$)/g, ''); // 全角转半角 tel = tel.replace(/[\uff10-\uff19]/g, (s) => s.charCodeAt() - 0xff10); // 去除+86前缀 tel = tel.replace(/^\+86/g,...

> 概念上我觉得没啥问题,具体在业务上有啥应用的地方吗(尤其是前端)? > > 2.14补充 > 对象的深拷贝 前端确实很少涉及算法。 这个我也只在做小游戏的时候有用到过