[英]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.