2019年11月28日
摘要: 一:错误捕获 1.try-catch 语句(错误捕获) try{ //这里放置可能出现问题的代码 }catch(error){ //错误发生时执行的代码 console.log(error.name) //打印错误类型 console.log(error.message) //打印错误消息 } 说明 阅读全文
posted @ 2019-11-28 16:56 皮杰克 阅读(412) 评论(0) 推荐(1) 编辑