天天看点

JavaScript -- throw、try 和 catch

try 语句测试代码块的错误。

catch 语句处理错误。

throw 语句创建自定义错误。

很想java哦。

Js代码: