求助,难了我好几天了。 Can't set headers after they are sent.

app.js

https://img2.mukewang.com/5bfceae200019a8804580629.jpg

postRouter

https://img1.mukewang.com/5bfceaec0001f3cd03500395.jpg

apiRouter

https://img3.mukewang.com/5bfceaf80001c2ee03770345.jpg

不是永远报错,是有时会报这个错误。我删的就剩这两个了,还是会报错;
错误的意思我知道,return 的位置写错了么?
请教应该怎么写?
出现好几天了,我试了很多方法,求一语道破。

慕斯709654
浏览 561回答 1
1回答

慕尼黑的夜晚无繁华

var formidable = require("express-formidable");// 解析提交内容插件抽风,换成bodyparser来解析
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript