一个同学慧涛分享给我的他写的操作cookie的函数,贴出来,做个笔记: //操作cookie //删除cookie hcookie('cookiename','','del'); //查询cookie hcookie('cookiename'); //添加修改cookie hcookie('cookiename','cookievalue') function hcookie(key,value,del){ var v = arguments[1]?arguments[1]:null; var…