如何从服务器访问网络存储数据?
我正在使用网络存储来存储网络客户端数据。
我不知道如何从浏览器和服务器访问数据?
I am using web storage to store web client data.
I dont know how to access data from browser as well as from server ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
很大程度上取决于您使用的框架(PHP、ASP.Net 等)。
在 ASP.Net 世界中,您可以通过 Javascript 访问浏览器数据:
http://www.w3schools。 com/html/html5_webstorage.asp
如果您想发送它,或者与服务器数据交互,您可以将其编写为也可以通过 Javascript 访问的脚本服务。在有限的情况下,您还可以设置服务器可以在回发时获取的字段值(通过 Javascript)。
如果您可以指定框架以及更多细节,那么有人可能会更好地为您回答这个问题。
A lot depends on the framework you're using (PHP, ASP.Net, etc).
In the ASP.Net world you can access the browser data via Javascript:
http://www.w3schools.com/html/html5_webstorage.asp
And if you want to send it, or interact with server data, you can write that as a script service that is also accessible from Javascript. In limited cases you can also set the value of a field (via Javascript) that the server can pick up on postback.
If you can specify the framework and maybe some more details someone might be better able to answer this for you.