TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Ask HN: Javascript try/catch, where should I be using it?
4 点
作者
devinrhode2
将近 13 年前
What are some good examples of where to use try/catches in javascript?
1 comment
jaseemabid
将近 13 年前
1. Validate some JSON from a server. Throw "Bad network" or "bad json" 2. Validate user input and all things related..