Home  >  Q&A  >  body text

javascript - Use form to jump to the page, but it is very slow. How to add a Loading?

Now the front and back ends of the project are not separated. The page has a form to jump, but the query is very slow. Now I have temporarily added a loading effect, which is displayed when the button is clicked, but the loading will not disappear when clicking return in Apple WeChat. I It is estimated that js will not be executed when returning. How to make this loading disappear before the page jumps? The page is as follows:

迷茫迷茫2648 days ago765

reply all(2)I'll reply

  • 仅有的幸福

    仅有的幸福2017-06-26 10:57:48

    It can be made into ajax, which is easier to handle. ps: You need to pay attention to the problem of slow query. During development, query is relatively slow, but when it is put into use, it will be okay

    reply
    0
  • phpcn_u1582

    phpcn_u15822017-06-26 10:57:48

    Just use layer

    reply
    0
  • Cancelreply