function getCookies() {
var cookies = document.cookie.split(';');
var cookieObj = {};
for (var i = 0; i < cookies.length; i++) {
var cookie = cookies[i].trim();
var keyValue = cookie.split('=');
cookieObj[keyValue[0]] = keyValue[1];
}
return cookieObj;
}
var cookies = getCookies();
console.log(cookies);
上一篇
openpyxl库中文文档-2
openpyxl修改表格样式
2020-02-18
下一篇
js获取网页坐标
js获取网页坐标
2020-02-18