Closed sufuwang closed 4 years ago
function Obj() { this.then = () => { console.info('o') } } const o = new Obj() let promise = new Promise((resolve,reject) => { resolve(o) })
hello,after running code,we get 'o' in console。Why?
hello,after running code,we get 'o' in console。Why?