closes #2982
This commit is contained in:
parent
8eed0d781f
commit
5ef143d48e
1 changed files with 11 additions and 0 deletions
|
@ -109,6 +109,17 @@ Static methods are also used in database-related classes to search/save/remove e
|
|||
Article.remove({id: 12345});
|
||||
```
|
||||
|
||||
````warn header="Static methods aren't available for individual objects"
|
||||
Static methods are callable on classes, not on individual objects.
|
||||
|
||||
E.g. such code won't work:
|
||||
|
||||
```js
|
||||
// ...
|
||||
article.createTodays(); /// Error: article.createTodays is not a function
|
||||
```
|
||||
````
|
||||
|
||||
## Static properties
|
||||
|
||||
[recent browser=Chrome]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue