Daryl
Daryl
我目前使用的是使用node.js脚本直接生成api请求的js文件 感觉是不是跟pont有些类似
```javascript const normalize = (str = '') => str .split(/[\[\]]/g) .filter(Boolean) .reverse() .reduce((acc, cur, index) => (!index ? { value: cur } : { value: cur, children: acc }), {});...
所以为什么打印的结果1,2,3
node v11.2.0 的运行结果: ```javascript script start async1 start async2 promise1 script end promise2 // async1 end // setTimeout ```
 看来我还是没懂原型链 。。。
> >  > > 看来我还是没懂原型链 。。。 > > Object.toString是将Object作为一个对象访问,Object自身没有属性toString,toString在Object的原型链上,Object.**proto**===Funtion.prototype,toString是Function.prototype的一个属性 > >  > > MDN中说,Function 对象覆盖了从 Object 继承来的 Object.prototype.toString 方法。函数的 toString 方法会返回一个表示函数源代码的字符串。具体来说,包括 function关键字,形参列表,大括号,以及函数体中的内容。若 this 不是 Function 对象,则 toString() 方法将抛出...
I'm unable to log in due to firewall software such as lulu.app. For your reference.