Node+express+mongoose前端实现简单crud接口
准备工作需要安装依赖如下node,express,mongoose,cors,requier-all。通过http//localhost3000/rest/crud/test/list即可获取列表。模型创建(模型文件)models/text.js。重复内容复用方法分页resource.js。通用接口文件route/index.js。重复内容复用方法分页pages.js。Dbserve文件db.js。入口文件index.js。......
原创
2022-07-26 16:44:22 ·
446 阅读 ·
0 评论