search

Home  >  Q&A  >  body text

javascript - Issues related to js login home page

The first time you visit the page, the verification code is not loaded. The second time you start to load the verification code. Please tell me how to implement this.
The current login page settings are as follows

How to record his first login and then judge

Thank you for your answer

PHP中文网PHP中文网2854 days ago573

reply all(4)I'll reply

  • ringa_lee

    ringa_lee2017-05-16 13:38:53

    Use localstorage to store~ Every time the page comes in, it will be judged whether this value exists. If it does not exist, it means the first login

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 13:38:53

    Use localstorage to store

    reply
    0
  • 黄舟

    黄舟2017-05-16 13:38:53

    Use localstorage or cookie storage. However, the http request will carry cookies, so it is best to use localstorage.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-16 13:38:53

    Same as above, localstorage

    reply
    0
  • Cancelreply