📄 c2.js
字号:
function C2(){
}
//这里将会在加载期调用C1的构造函数,需要一个前期依赖
C2.prototype = new C1();
C2.prototype.toString = function(){
return "this is c2";
}
C2.prototype.showMessage = function(){
return "this is C2,inherit from class C1:"+new C1();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -