Spotify 应用程序 - 维护页面之间的状态
Firend 我正在开发 Spotify 应用程序和根据他们的开发者网站,我了解到我只能使用 HTML/HTML5、javascript、css 进行开发 现在我有一些关于开发的问题: 我有多个页面&对于每个页面,我都有特定的输入参数和我想在整个应用程序中跟踪这些参数 例如作为用户输入的用户名。 我怎样才能做到这一点, 有没有某种会话管理工具或类似的东西? 我如何处理来自不同页面的我的数据以显示所需的结果。
Firend i am developing spotify application & according to their developers site i come to understand that i can use only HTML/HTML5 , javascript, css for development
Now i am having some question regarding development:
I am having multiple pages & for each page i am having certain input parameters & i want to track these parameter throughtout application
such as user name taken as input from user.
How can i do that ,
is there any kind of session management tool or something like that?
How can i process mydata from different page to show desired result.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据 API 指南,您可以利用
HTML localStorage API
:有关如何与
localStorage
交互的综合文档可以在 MDC。归结为使用
window.localStorage.setItem(key, value)
和window.localStorage.getItem(key)
来设置和检索数据。As per the API Guidelines, you are able to take advantage of the
HTML localStorage API
:Comprehensive documentation on how you can interact with
localStorage
can be found on MDC.It boils down to using
window.localStorage.setItem(key, value)
andwindow.localStorage.getItem(key)
to set and retrieve data.