mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
17 lines
268 B
JavaScript
17 lines
268 B
JavaScript
|
/** @constructor */
|
||
|
function Article() {
|
||
|
}
|
||
|
|
||
|
Article.prototype.init = function(title) {
|
||
|
/** the instance title */
|
||
|
this.title = title;
|
||
|
|
||
|
/** the static counter */
|
||
|
Article.counter = 1;
|
||
|
}
|
||
|
|
||
|
a = new Article();
|
||
|
a.Init("my title");
|
||
|
|
||
|
print(a.title);
|
||
|
print(Article.counter);
|