search

Home  >  Q&A  >  body text

PHP countdown to get instant value

I used js to write a 60-second countdown, and then I need to get the number of seconds at a certain moment, and then store it in a certain field in the database. How should I handle it? I hope it can be more detailed. Can anyone help me solve it? ?

阿神阿神2831 days ago410

reply all(2)I'll reply

  • 阿神

    阿神2017-05-16 13:15:16

    Add a callback function to the function that clicks to stop, pass the current value to the background using ajax, and save it.

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 13:15:16

    Just asynchronous processing with ajax

    reply
    0
  • Cancelreply