感觉问的不难,可能是感觉到我菜,目前也没有后续
setTimeout(function(){console.log(1)},0); new Promise(function(resolve){ console.log(2); for(var i=0;i<10000;i++) i==9999 && resolve() console.log(3) }).then(function(){ console.log(4) }); console.log(5)
let obj1 = {name:'a'}; let obj2 = {name:'b'}; function Child(name){ this.name = name; } Child.prototype = { constructor:Child, showName:function(){ console.log(this.name) } } var name = 'd'; var child = new Child('c') child.showName(); // c child.showName.call(obj1); // a child.showName.apply(obj2); // b let bind = shild.showName.bind(obj1); bind() // a
反问
部门:钉钉智能协作
技术栈:react+node.js+java
面试流程:两轮技术+hr