2018-11-05 教程 前端模拟后端数据的神器json-Server install Json Server1npm install -g json-server 在指定目录下创建db.json123456789{ "posts": [ { "id": 1, "title": "json-server", "author": "typicode" } ], "comments": [ { "id": 1, "body": "some comment", "postId": 1 } ], "profile": { "name": "typicode" }} 启动服务并监听文件1json-server --watch db.json 项目文档 Newer typeScript的类 Older wget范例