Control character in cookie value or attribute时间:2023-03-10 03:03:37 在cookie中添加中文导致静态页面打不开, (1)先清除缓存 (2)使用escape()函数对中文进行编码,获取的时候在对中文进行解码unescape()。 cookie.Set("stoName",escape(stoName),2,"/");