Open OnClickListener2048 opened 6 years ago
貌似已经停更了吧,功能支持的有限
貌似作者已经不维护了,下面是一个支持拦截 fetch 的版本 zjffun/Mock-support-intercept-fetch
fetch
使用的话:
npm install @zjffun/mockjs
fetch 的拦截还是比较好实现的,因为拦截后返回 resolve 为 response 对象(通过 Response - Web APIs | MDN 创建)的 promise 对象就行。
貌似已经停更了吧,功能支持的有限