// function test() { try { throw new Error(); } catch(e) { console.log(e); console.log(e.stack, 'call stack test 函数调用堆栈'); } }