您的位置: 首页 > 文章 > js | new Error() js | new Error() 分类: 文章 • 2024-05-13 15:24:04 new error() const x = Error('I was created using a function call!'); console.log(x); const y = new Error('I was constructed via the "new" keyword!'); console.log(y);