摘要: 1. 程序异常 ① try-catch语法 测试异常 try-catch语法代码如下: try { 异常代码; try中可以承重异常代码, console.log(“try”) 出现异常代码后,正确代码不会执行 } catch (e) { console.log(“e:”+e); try中出现异常在 阅读全文
posted @ 2017-02-25 00:48 Tabb.Coding 阅读(355) 评论(0) 推荐(0)