TablePie
/home
/tech
/reading
/writing
3. 错误处理
try-catch-finally
#
官方文档
try-catch-finally与返回值
#
如果
finally
没有写返回值,则
try
和
catch
必须写返回值。
如果
finally
写了返回值,则
try
和
catch
写不写返回值均可。
如果在
finally
中写了return,则该函数的返回值一定是
finally
中写的值。
←
4. 循环
2025-W22
→
back to top