删除添加数据行
This commit is contained in:
		
							parent
							
								
									eeb4236b21
								
							
						
					
					
						commit
						3e052a9578
					
				
							
								
								
									
										6
									
								
								app.js
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								app.js
									
									
									
									
									
								
							@ -5,12 +5,6 @@ dbs = require("./bin/mongodb.js")('mongodb://localhost:27017/',"myblog")
 | 
			
		||||
// console.log(requter)
 | 
			
		||||
// import requter from "./bin/router"
 | 
			
		||||
const app = new Koa();
 | 
			
		||||
dbs.add('a','a').then((res)=>{
 | 
			
		||||
    console.log(res)
 | 
			
		||||
}).catch((err)=>{
 | 
			
		||||
    console.log(err)
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
app.use(async (ctx,next)=>{
 | 
			
		||||
    // await next();
 | 
			
		||||
    console.log(ctx.url)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user