随笔分类 -  前端面试

2018面试题
该文被密码保护。
posted @ 2018-12-16 17:59 huyanluanyu1989 阅读(1) 评论(0) 推荐(0)
实现继承的方式
摘要:/** * 借助构造函数实现继承 */ function Parent1(){ this.name = "parent1"; } Parent1.prototype.say = function(){}; function Child1(){ //将父构造函数的this指向子构造函数的实例上 Pa... 阅读全文
posted @ 2018-12-12 00:38 huyanluanyu1989 阅读(219) 评论(0) 推荐(0)