Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无需调用网络服务。是否有一个测试框架/库来模拟响应?使用固定装置进行响应?
您可以通过Advance Rest Client在 chrome 浏览器中下载插件来测试您的网络服务。
Advance Rest Client
有几个检测框架,例如Mercury和Instrumentation。
但是,对于实际的网络仿真,最好的选择是使用本地主机服务器,例如使用WAMP,它可以让您在本地运行 PHP 并模拟响应。