1. 自我介绍2. http问题,https怎么实现的(问的非常细节和深入)3. egg.js问题,egg.js cluster4. 线程和进程,java、js语言的比较setTimeout(()=>{ console.log('1')},0)new Promise((res)=>{ console.log('2'); res();}).then(()=>{ console.log('3')})console.log('4')2431let a = 2;function b (){let a = 1; return Function('console.log(this,a)')();}b.call({})window, 1function b (){ let a = 1; setTimeout(function(){ console.log(this,a); },0)}b.call({})function b (){ let a = 1; console.log(this,a)}b.call({}) {}, 1function b (){ let a = 1; setTimeout(()=>{ console.log(this,a) },0);}b.call({}) function extend(sub, parent) { // clone}class sub {}class parent { constructor(){ this.name = 1; }}parent.test = function(){}extend(sub,parent);// sub instanceof parent === true;typeof sub;'function'var subinstance = new sub();subinstance.name