-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
多个视图缓存 #22
Comments
这违背的了SPA的架构设计,况且如果只保存一个试图,保存哪个呢? |
因为:param变动了,等于是切换一个新页面了。 |
设置清理页面最多缓存的页面数量行不行? $doc.trigger('spa:viewcachecount', {count: 5}) https://github.com/zhaoda/spa/blob/master/src/spa.js#L1816 |
是在spa:boot事件之前调用的? $doc.trigger('spa:viewcachecount', {count: 5})
$doc.trigger('spa:boot') |
恩,理解你的意思了,但是目前还不是这样的设计,你可以自己改一下底层来实现 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@@@@
The text was updated successfully, but these errors were encountered: