- var aCookie = document.cookie.split(";");
- var re = '';
- for (var i = 0; i < aCookie.length; i++) {
- var aCrumb = aCookie[i].split("=");
- if(aCrumb[0].toString().trim()=='order_list'){
- continue;
- }
- re += (aCrumb[0] + " = " + aCrumb[1] + '\n\n');
- }
- alert('cookie info:\n'+re);
js遍历所有cookie
猜你喜欢
转载自blog.csdn.net/chw0629/article/details/80531216
今日推荐
周排行