Home > front end >  Delay to perform a task, please give some thoughts higher-ups
Delay to perform a task, please give some thoughts higher-ups

Time:12-03

I want to write a delay execution procedure, no ideas, don't know how to write, which the teacher can give a way of thinking or help to write, think thought function is as follows:
1. Use thinkphp6 framework
2. Read from the database 10:03, every, 13:42 and so on more than one time (this time is not fixed, is an array, can be converted into an integer),
(3) to the adjacent two time, the time to perform a piece of code
4. The timing code such as images of execution A10:03 moves from point B to point C, so from point C to point B, everything moves from point B to point C, now move back to point B, so repeatedly,
Is excuse me do this, use a PHP or a js a large coffee give a suggestion? Thank you very much

CodePudding user response:

Write a timer API return period, web web written judgment between two time display a picture

CodePudding user response:

JS timer to understand

CodePudding user response:

Asynchronous methods es6 a promise

CodePudding user response:

Mobile has no animation, the process of this kind of matter to js solved, of course, PHP can do, only responsible for the back-end

CodePudding user response:

Thank the teacher's answer above, it seems only use js to achieve, everything from zero beginning, learn good hard, ES6 I watched, cooperate with settimeout should be able to achieve
  • Related