![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript学习笔记
文章平均质量分 65
96sir
后端攻城狮了,,,
展开
-
javascript继承方法(一)
javascript常用继承方法原创 2017-09-19 12:44:57 · 916 阅读 · 0 评论 -
javascript继承方法(二)
三,组合继承 function SuperType(name) { this.name = name; this.color = ['yellow','black','green']; } SuperType.prototype.sayName = function () { console.log(this.name); }; function SubType(name,a原创 2017-09-19 15:36:51 · 952 阅读 · 0 评论 -
Javascript继承方法(三)
五,构造函数 call()方法继承 function superText(name) { this.name = 'jiang'; this.age = 20; this.method = function () { console.log("it is worth.") } superText.prototype.like="play"; } f翻译 2017-09-19 15:56:29 · 728 阅读 · 0 评论