原生js獲取Cookie
function getCookie(name){
var strcookie = document.cookie;//獲取cookie字符串
var arrcookie = strcookie.split("; ");//分割
//遍歷匹配
for ( var i = 0; i < arrcookie.length; i++) {
var arr = arrcookie[i].split("=");
????if (arr[0] == name){
?????????return arr[1];
????}
}
????????return "";
}