赞
踩
//设置cookie
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
document.cookie = cname + "=" + cvalue + "; " + expires;
}
// 删除cookie
function clearCookie(name) {
setCookie(name, "", -1);
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。