简体   繁体   English

使用本地存储将 html 页面中的 javascript 变量传递到另一个页面

[英]Pass javascript variables from a html page to another using local storage

I'm trying to make a web app which counts the amount of homework one hasn't done.我正在尝试制作一个网络应用程序,它可以计算尚未完成的作业量。 Basically, there is a "main" page with a table containing the pupils in which the teacher can press a button if one has made the homework or another one if one hasn't.基本上,有一个“主”页面,其中包含一张包含学生的表格,如果学生已经完成作业,教师可以在其中按下一个按钮,如果没有完成,则可以按下另一个按钮。 I also created a page for every student to see his own "counters".我还为每个学生创建了一个页面,以查看他自己的“计数器”。 Is there any way to transfer the counter of each pupil from the "main" page to his own page in order to see them privately?有没有什么办法可以将每个学生的计数器从“主”页面转移到他自己的页面上以便私下查看? Is there any way to do this by using local storage?有没有办法通过使用本地存储来做到这一点?

如果不使用数据库,最简单的就是将每个学生的数据写在一个文件中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 javascript使用Cookie将变量传递到另一个页面 - javascript Using cookie to pass variables to another page 使用本地存储在单击时将 JSON 数据从一页传递到另一页并显示 - Pass and display JSON data from one page to another on click using local storage 如何使用javascript将值从一个html页面传递到另一个html页面 - How can I pass values from one html page to another html page using javascript 如何仅使用JavaScript将表单数据从一个HTML页面传递到另一HTML页面? - How do I pass form data from one HTML page to another HTML page using ONLY javascript? 在 HTML TABLE 中打印 JSON 使用本地存储从另一个表保存,以便我在另一个页面上打印我的表 - Printing JSON in HTML TABLE saved from another table using local storage so that i print my table on another page 如何使用Phonegap中的JavaScript将数据从一个html传递到另一个html页面? - How to pass the data from one html to another html page using JavaScript in Phonegap? 将页面变量保存在本地存储中并在另一个页面中显示 - save page variables in local storage and show them in another page 使用Localstorage存储和检索从一个html页面到另一个html页面的javascript变量(DOM) - Using Localstorage to store and retrieve javascript variables from one html page to another (DOM) 将变量从javascript文件传递到另一个html页面 - passing variables from a javascript file to another html page 如何使用JavaScript将值从一个HTML页面传递到另一个HTML页面? - How can I pass a value from one HTML page to another using JavaScript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM