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中单独引入web-storage-cache.js文件会报错 #16

Open
Jxiang-jc opened this issue May 13, 2019 · 0 comments
Open

如果在vue中单独引入web-storage-cache.js文件会报错 #16

Jxiang-jc opened this issue May 13, 2019 · 0 comments

Comments

@Jxiang-jc
Copy link

Jxiang-jc commented May 13, 2019

在.vue文件中引入:
const WebStorageCache = require('./utils/web-storage-cache.js')
const $storage = new WebStorageCache()

Chrome 会报错 “WebStorageCache is not a constructor”

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

1 participant