function a(){ console.log(1) b() console.log(2) } function b(){ try{ throw new Error('错误') }catch(error){ console.log(error) } } a()