• 微信小程序 + mock.js 实现后台模拟及调试

    时间:2022-09-11 11:32:15

    一、创建小程序项目mock.js 从 https://github.com/nuysoft/Mock/blob/refactoring/dist/mock.js 下载api.js:配置模拟数据和后台接口数据,通过 DEBUG = true;//切换数据入口let API_HOST = "http:/...