javascript学习笔记
文章平均质量分 65
96sir
后端攻城狮了,,,
展开
-
javascript继承方法(一)
javascript常用继承方法原创 2017-09-19 12:44:57 · 915 阅读 · 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 · 950 阅读 · 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 · 727 阅读 · 0 评论