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.
我创建了一个猫鼬中间件,我想返回一个不同的结果(例如一些硬编码的模拟数据)
所以我需要中间件不要在回调函数结束时调用“next()”(因为即使我不调用它,它似乎也被调用了。因为当触发下一个时,原始请求正在发送并返回它的结果,我不想要那个