- 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
最新推荐文章于 2024-03-25 22:14:19 发布