子类继承父类的方法(多重继承)
摘要:
function M1() { this.hello = 'hello'; } M1.prototype.sayHello=function(){ console.log("sayHello"); } function M2() { this.world = 'world'; } M2.protot 阅读全文
posted @ 2017-10-12 18:02 龟和兔子赛跑 阅读(206) 评论(0) 推荐(0)
浙公网安备 33010602011771号