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? ?
闭关修行中......
Add a callback function to the function that clicks to stop, pass the current value to the background using ajax, and save it.
Just asynchronous processing with ajax
Add a callback function to the function that clicks to stop, pass the current value to the background using ajax, and save it.
Just asynchronous processing with ajax