📄 prototype_oblit_constructor.js
字号:
/** @constructor */function Article() {}Article.prototype = { /** @constructor */ Title: function(title) { /** the value of the Title instance */ this.title = title; }, init: function(pages) { /** the value of the pages of the Article instance */ this.pages = pages; }}f = new Article();f.init("one two three");t = new f.Title("my title");print(f.pages);print(t.title);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -