存
document.cookie = escape("cookie="+"123465abcabc");
取
var ck = document.cookie;
var str = unescape(ck);
var cookies = str.split(";");
for(var i = 0; i < cookies.length; i++) {
var c = cookies[i];
var arr = c.split("=");
if(arr[0].trim() == "cookie") {
var cookie = arr[1].trim();
console.log(cookie)
}
}