new Post( [post] [, fromDB])
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
post |
_Document | Object |
<optional> |
hexo数据库中的post文档 | |
fromDB |
fromDB |
<optional> |
true | 是否是从数据库载入 |
Methods
-
_delete()
-
从列表删除键,键列表被存在`this._whe_delete`内
-
freeze()
-
删除不用数据,准备使用hexo创建新文件
-
update(obj)
-
从对象更新数据
Parameters:
Name Type Description obj
Object 需要更新的属性对象,`_id`属性将被忽略 Returns:
- 更新后的文章- Type
- Post