Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持在vue.js中引入吗? #20

Open
dongshaofei666 opened this issue Nov 13, 2019 · 1 comment
Open

支持在vue.js中引入吗? #20

dongshaofei666 opened this issue Nov 13, 2019 · 1 comment

Comments

@dongshaofei666
Copy link

请问下在vue.js中怎么引入?

@Guosugaz
Copy link

看了一下README.md, 思路应该是这样

import Vue from "vue";
import WebStorageCache from "web-storage-cache";

Vue.potptype.$storage = new WebStorageCache();

// 使用
// Vue.$storage.set('username', 'wqteam', {exp : 100});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants