Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 166 Bytes

yi-chang.md

File metadata and controls

11 lines (8 loc) · 166 Bytes

异常

// 方式1 
throw 'error'

// 方式2
throw new Error('error')

常见的异常还包括 TypeError, RefenceError, RangeError, SyntaxError