简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM