在 Vue 生命周期等地方,有异常会自动抛出错误。也可以在想要的地方手动抛出一个错误. this.$throw('这是手动抛出的一个错误', this, '这是hook,比如:updated').
確定! 回上一頁