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.
这是我设置一个cookie的方式,但是如何设置两个或更多?
var head = {}; head['Set-Cookie'] = name+'='+value res.writeHead(200, head);
根据文档中的setHeader示例,您可以指定一个值数组。由于这个提交它应该writeHead也适用。
setHeader
writeHead