任务model,存储了任务的信息。
(require("models/tasks"))(global) → {mongoose.model}
创建tasks model。
、
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
global | 
            
            
            
                
object
            
             | 
            
            
            
                 全局对象,主要使用了以下字段: 
  | 
        
Returns:
- Type:
 - 
        
mongoose.model 
tasks model
- Source: