details.js中cookie的字符问题??
点开商品后报错
Servlet.service() for servlet [jsp] in context with path [/ServletCartDemo] threw exception [java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value] with root cause
java.lang.IllegalArgumentException: An invalid character [44] was present in the Cookie value
然后上网查是说cookie内容中不能包含逗号“,”,
我就将逗号“,”改成了“#”,但是还是会报错
请问怎么解决?