摘要: Object.prototype的toString()可以返回变量类型 而一般都重写了这个方法 借助call() function classOf(x){ if(x null) return "NULL"; if(x undefined) return undefined; return Objec 阅读全文
posted @ 2017-11-10 10:00 nebulium 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Chapter 17 错误的处理与调试 Chapter 18 JavaScript与XML Chapter 19 E4X Chapter 20 JSON Chapter 17 错误的处理与调试 浏览器报告的错误 罗列各个浏览器显示JS错误的方式。万能的F12键。 错误处理 try-catch语句: 阅读全文
posted @ 2017-11-10 09:55 nebulium 阅读(155) 评论(0) 推荐(0) 编辑