后端传过来的是什么?
JSON。
JSON是什么?JavaScript Object Notation
因此这个工具应该用JS来写。
我已经准备好了:
https://github.com/yaoyuan0/rest-test-template
直接修改 test.js 测试后端的 api 即可
如果你是前端,最好一开始就写上,如果后端接口都没有到位,就不要浪费时间了。
如何测试后端接口
最新推荐文章于 2022-11-19 15:13:28 发布
博客提到后端传来的数据格式为JSON,即JavaScript Object Notation,所以测试工具应用JS编写。作者提供了相关工具链接https://github.com/yaoyuan0/rest-test-template ,修改test.js即可测试后端api,还提醒前端若后端接口未到位,勿浪费时间。
6436





