使用Mock拦截失败的问题

354 阅读1分钟

Mock.mock(rurl?, rtype?, template|function(options))

rtype可选。

表示需要拦截的 Ajax 请求类型。例如 GETPOSTPUTDELETE 等。

但是rtype不能大写,只能使用小写get,否则会导致拦截失败