var arr = document.cookie.match(/[^\s]*/ig);
for(var i = 0; i < arr.length; i++) {
console.log(arr[i]);
}
js正则解析cookie
最新推荐文章于 2022-04-07 22:01:03 发布
var arr = document.cookie.match(/[^\s]*/ig);
for(var i = 0; i < arr.length; i++) {
console.log(arr[i]);
}