prototype_oblit_constructor.js

来自「JsDoc Toolkit 是一个把js描述格式化成文档的工具。开发者只需按Js」· JavaScript 代码 · 共 24 行

JS
24
字号
/** @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 + =
减小字号Ctrl + -
显示快捷键?