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? ?
阿神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.