摘要:
js 中创建实例的方法 阅读全文
posted @ 2018-11-18 22:30
C小小
阅读(331)
评论(0)
推荐(0)
摘要:
示例代码 注意: catch 块中,throw之后的代码永远不执行 若捕获到异常,函数中catch块后的代码也不执行 throw 1 若使用throw new Error('说明') 可以打印异常的堆栈信息 2 若只是throw '说明',不带堆栈信息 阅读全文
posted @ 2018-11-18 22:28
C小小
阅读(9997)
评论(0)
推荐(1)
摘要:
改变函数运行时的this 参考文档 https://www.jianshu.com/p/bc541afad6ee 阅读全文
posted @ 2018-11-18 22:14
C小小
阅读(307)
评论(0)
推荐(0)
摘要:
isArray() 判断是否为数组 ie,chrome中都适用 阅读全文
posted @ 2018-11-18 22:06
C小小
阅读(204)
评论(0)
推荐(0)
摘要:
js中继承的实现方法: __proto__ 阅读全文
posted @ 2018-11-18 22:03
C小小
阅读(125)
评论(0)
推荐(0)
摘要:
typeof 适用于值类型的判断 instanceof 使用于引用类型判断 阅读全文
posted @ 2018-11-18 22:02
C小小
阅读(193)
评论(0)
推荐(0)

浙公网安备 33010602011771号