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

希望storage能提供类似cookie的失效时间设置 #3

Open
kpbiao opened this issue Mar 4, 2014 · 1 comment
Open

希望storage能提供类似cookie的失效时间设置 #3

kpbiao opened this issue Mar 4, 2014 · 1 comment

Comments

@kpbiao
Copy link

kpbiao commented Mar 4, 2014

应用场景:页面上有全站的弹窗、banner广告位的时候 希望用户关闭之后再某一段时间不显示,过段时间之后又能自动显示出来。

@ritawr
Copy link

ritawr commented Aug 22, 2014

set时多加一个时间戳参数,get时将当前时间戳和set的时间戳相减判定是否在间隔内,这样是否可以解决你所需的场景呢?

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