json-server配置 1.全局安装json-server npm i json-server -g 2.新建db.json存放mock数据 3.启动json-server json-server --watch db.json