微信小程序结合mock.js实现后台模拟及调试【点击查看详情】
微信小程序结合mock.js实现后台模拟及调试:一、创建小程序项目 mock.js 从 https://github.com/nuysoft/Mock/blob/refactoring/dist/mock.js 下载 api.js:配置模拟数据和后台接口数据,通过DEBUG = true;//切换数据入口 let API_HOST = http://xxx.com/xx
相关视频/文章