issues
search
weijiyang
/
GOOD-IDEA
这里记录一些灵感~详见ISSUES
1
stars
0
forks
source link
try catch
#72
Open
weijiyang
opened
4 years ago
weijiyang
commented
4 years ago
throw new Error("Something bad happened.");
throw new SyntaxError("I don’t like your syntax.");
throw new TypeError("What type of variable do you take me for?");
throw new RangeError("Sorry, you just don’t have the range.");
throw new EvalError("That doesn’t evaluate.");
throw new URIError("Uri, is that you?");
throw new ReferenceError("You didn’t cite your references properly.");
weijiyang
commented
4 years ago
异常会终端代码执行
async await 能否使用try catch (不能!!!!)
可以在异步内try catch