Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

Express:设置cookie时,为什么cookie会带有"=undefined"字符串

$
0
0
'use strict'
var express = require('express');
var app = express();
app.get('/',function(req,res){
  res.cookie("tokenID="+Date.now());
  res.end();
});
app.listen(3000);

浏览器cookie截图 2.bmp


Viewing all articles
Browse latest Browse all 14821

Trending Articles