How to keep photos and characters in Monaca's TODO management app

Asked 2 years ago, Updated 2 years ago, 30 views

I'm a beginner in the program.
In the TODO management app in the Monaca sample, once the photos and characters you add are closed, they are reset and disappear.I would like it to remain open again after closing, so please tell me the program and how to do it.

javascript monaca

2022-09-29 22:22

1 Answers

Nice to meet you.Regarding Monaca's TODO management application, is it correct that it is at the following URL?

https://docs.monaca.io/ja/sampleapp/samples/todo/

Once the website is closed, everything is reset because the data entered is not saved (permanent).Monaca is a framework for developing applications in HTML and JavaScript, so if you want to use JavaScript to save data, we recommend that you try perpetuating it using LocalStorage.LocalStorage allows you to save and read data, so you can save it when you add TODO and read it when you open the app, leaving the data you entered.

You can also refer to this Qiita article.
https://qiita.com/masamitsu-konya/items/c69515604570150d3ab9


2022-09-29 22:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.