摘要: 在做东西时候遇到一个可能会重复输出res.json的地方,重复输出会产生Error:Cannot set header after they are sent. Node.js不像c++里可以直接通过return直接结束函数运行。 但其实只要 return res.json();就可以了。 阅读全文
posted @ 2017-10-13 10:39 湛蓝玫瑰 阅读(547) 评论(0) 推荐(0) 编辑