飞鸟

Results 8 comments of 飞鸟

第一感觉结果应该是`[ 1, 2, 3 ]`,但答案却是`[ 1, NaN, NaN ]`: ```javascript ['1', '2', '3'].map(parseInt); // [ 1, NaN, NaN ] ``` 这是因为`map()`方法创建一个新数组,该数组中的每个元素都调用一个提供的函数后**返回的结果**。 `parseInt()`方法接收**2**个参数,第一个参数为**要被解析的字符串**,第二个参数表示**要解析的数字的基数**,**可选**。 `map()`有**3**个参数,分别是**当前元素**,**索引**,**数组本身**,因为`parseInt()`方法接收两个参数,所以这里只用到了前两个参数。 > 详情请看MDN: > > map() > >...

感谢推荐,目前用的是比较简单的marked

好的,博客主页有我的联系方式🤣

Scheduler调度器: ```JavaScript class Scheduler { constructor(max) { // 最大可并发任务数 this.max = max; // 当前并发任务数 this.count = 0; // 阻塞的任务队列 this.queue = []; } async add(fn) { if (this.count >= this.max)...

> #3 直接一closed了之,文档也不加? > > 使用angular开发时,引入报错 > > ``` > ./node_modules/@cloudbase/js-sdk/dist/index.esm.js:9:14-25 - Error: Should not > import the named export 'version' (imported as 'pkg') from default-exporting > module (only default...

> 请参考 [cloudbase-todos](https://github.com/arniu/cloudbase-todos). > > 我用 patch-package 修改后可正常运行。 感谢

开发时没考虑到,按tab默认执行的是改变输入焦点的功能。待修复~