We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86189ab commit 0be1735Copy full SHA for 0be1735
1-js/10-error-handling/1-try-catch/1-finally-or-code-after/solution.md
@@ -1,6 +1,6 @@
1
当我们看函数中的代码时,差异就变得很明显了。
2
3
-如果在这儿有“跳出” `try..catch` 的行为,那么这两种方式的表现就不同了。
+如果在这有“跳出” `try..catch` 的行为,那么这两种方式的表现就不同了。
4
5
例如,当 `try...catch` 中有 `return` 时。`finally` 子句会在 `try...catch` 的 **任意** 出口处起作用,即使是通过 `return` 语句退出的也是如此:在 `try...catch` 刚刚执行完成后,但在调用代码获得控制权之前。
6
@@ -27,10 +27,10 @@ f(); // cleanup!
27
function f() {
28
try {
29
alert('start');
30
- throw new Error("an error");
+ throw new Error("一个 error");
31
} catch (err) {
32
// ...
33
- if("can't handle the error") {
+ if("无法处理此 error") {
34
*!*
35
throw err;
36
*/!*
0 commit comments