亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

javascript - When clicking a button to add content, if the network is stuck, clicking multiple times will add multiple content.
為情所困
為情所困 2017-05-19 10:10:22
0
2
650

When clicking the button to add content, if the network is stuck, clicking the button multiple times will send multiple requests and add multiple content. How should the front end handle it.

為情所困
為情所困

reply all(2)
Peter_Zhu
  1. Set the button to disabled when clicking send

  2. Send a request

  3. After requesting the callback (regardless of success or failure), set the button to be available

phpcn_u1582

Disable the button after clicking it, wait for the network to respond, and then undisable it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template