使用node开发的能够模拟后台API的工具json-server,十分好用,put,post,get,delete,分页都支持。
还有一个就是mockjs,它有缺点就是无法匹配带参数的请求。
参考文档
https://coligo.io/create-mock-rest-api-with-json-server/
https://github.com/typicode/json-server
http://mockjs.com/
还有一个就是mockjs,它有缺点就是无法匹配带参数的请求。
参考文档
https://coligo.io/create-mock-rest-api-with-json-server/
https://github.com/typicode/json-server
http://mockjs.com/
本文标题:前端人员模拟后台数据json-server与mockjs
本文链接:https://www.haomeiwen.com/subject/elynixtx.html
网友评论