摘要:
收藏着,网上有一些的写的很不靠谱。function setCookie(name,value){ // 30DAYS var Days = 30; var exp = new Date(); //new Date("December 31, 9998"); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape(value) +";expires="+ exp.toGMTString();}function getCoo 阅读全文