我有一个观点(我已经嘲笑了here),它使用Elm的style-elements库来生成表单:
Error: Can't set headers after they are sent.
at ServerResponse.setHeader (_http_outgoing.js:371:11)
at ServerResponse.header (./node_modules/express/lib/response.js:767:10)
at ServerResponse.contentType (./node_modules/express/lib/response.js:595:15)
at Server.finalize (./dist/server.js:1156:17)
at Layer.handle [as handle_request] (./node_modules/express/lib/router/layer.js:95:5)
...
据我所知,简单地设置“输入”并不是一个很好的方法。