$.cookie(name, null);
Jquery Cookie的值直接设置null,并不能直接删除Cookie,反而把值更新成了“null”字符串

想要删除,需要这样设置,把expires设置成负数。

$.cookie(name, null, {path : "/",expires : -1}); 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
  • 2021-11-24
相关资源
相似解决方案