标签:cookies null ade split div for rip header head
node.js 获取cookie
var Cookies ={}; if (req.headers.cookie != null) { req.headers.cookie.split(‘;‘).forEach(l => { var parts = l.split(‘=‘); Cookies[parts[0].trim()] = (parts[1] || ‘‘).trim(); }); }
标签:cookies null ade split div for rip header head
原文地址:http://www.cnblogs.com/xbblogs/p/5984125.html