Skip to content

Instantly share code, notes, and snippets.

@zzmark
Last active September 6, 2019 05:45
Show Gist options
  • Save zzmark/d93bbcbbf3b6e763062c977c269edcbf to your computer and use it in GitHub Desktop.
Save zzmark/d93bbcbbf3b6e763062c977c269edcbf to your computer and use it in GitHub Desktop.
modify js-cookie support external cookie. 修改 js-cookie 让它支持了调用时输入 cookie 字串。移除了原有的模块化支持,仅保留 es6 模块化方案。
@zzmark
Copy link
Author

zzmark commented Sep 6, 2019

仅修改了 get 方法,给 get 方法增加了一个入参

让 get 支持从外部导入 cookie 字串,方便在 js 的服务端统一处理 cookie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment