![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端自学 | 笔记
文章平均质量分 83
小花骨朵呀
这个作者很懒,什么都没留下…
展开
-
前端面试必备 常见手写题
常见手写题1.Filterexport function filter(arr, callback) { // 定义空数组接收 回调返回为true的 元素 let result = []; for (let i = 0; i < arr.length; i++) { let res = callback(arr[i], i); // 如果回调结果为真 就压入结果数组中 if (res) { result.push(arr[i])...原创 2022-03-27 21:08:30 · 1875 阅读 · 0 评论 -
手写Promise
手写promise过程原创 2022-02-12 10:31:59 · 534 阅读 · 5 评论