我在 $cookieStore 中设置了一些键,$cookieStore.put('temp',temp);
并保存在 cookie 中,但有些键值被更改,
所以当$cookieStore.get('temp');
我收到这个错误时:
未捕获的 SyntaxError:JSON 输入意外结束
at Object.parse (<anonymous>) at Object.vc [as fromJson] (1.4.9_angular.min.js:15) at Object.getObject (1.4.9_angular-cookies.min.js:12) at Object.get (1.4.9_angular-cookies.min.js:13)
请我需要知道在尝试获取键值时哪个可以更改导致错误的值的格式!