How to realize WeChat Mini Programs clock clock by JavaScript
Today, I would like to share with you the relevant knowledge about how to achieve WeChat Mini Programs clock in JavaScript. The content is detailed and the logic is clear. I believe most people still know too much about this, so share this article for your reference. I hope you can get something after reading this article. Let's take a look at it.
First, project display
This is a simple and practical small clock tool.
Divided into two states: work and rest.
The user can set the appropriate time
All clock records will be saved.
Second, home page
The home page consists of a timer, a task input box and two timing buttons
{{remainTimeText}} {{taskName}} {{completed? 'it 's done!' : 'medium'} {{isRuning? 'done': 'work'} {{isRuning? 'done': 'rest'}}
The effect picture is as follows:
3. Setting
Users can change the working hours and rest hours in the settings interface.
Working hours (minutes) rest time (minutes) Home page background Select background > Enable ringtone Select ringtone >
The effect picture is as follows:
These are all the contents of the article "how to achieve WeChat Mini Programs clock in JavaScript". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.