javascript program of analog clock based on h5 canvas
design sketch
|
Update log
1. The first parameter of the construction method supports passing in the id of the canvas dom object. You can pass either the canvas dom object or the id of this dom object. 2. setOptions method is added to facilitate dynamic updating of analog clock properties. 3. Fix the BUG that the passed in options d ...
Added by harrylt on Wed, 23 Feb 2022 14:51:01 +0200
DOM and BOM of JavaScript objects
preface
This article briefly introduces the BOM object and DOM object of JavaScript, as well as the related methods and usage.
catalogue
1, DOM object simple learning
2, Events
2.1 simple learning of events
2.2. Event monitoring mechanism
Case: bulb switch:
3, BOM object
3.1. BOM object concept:
3.2 composition
Case: ...
Added by corbin on Wed, 23 Feb 2022 14:44:16 +0200
MySQL database advanced operation
(1) Clone the table and generate the data records of the data table into a new table
1. Method 1: use like
create table test1 like info; #Using the LIKE method, copy the KY08 table structure to generate the test01 table
insert into test1 select * from info;
2. Method 2: direct cloning
CREATE TABLE test2 (SELECT * from info);
show cre ...
Added by Dada78 on Wed, 23 Feb 2022 14:36:47 +0200
Day 22 file and Io stream
File: an abstract representation of files and folders in java
Construction method:
public File(String pathname)
Create a new File instance by converting the given pathname string to an abstract pathname. If the given string is an empty string, the result is an empty abstract pathname.
public File(String parent,String child)
Create a new Fi ...
Added by xtopolis on Wed, 23 Feb 2022 14:23:43 +0200
Driving route planning based on location and location search
A mobile terminal example developed based on Gaode map JSAPI simulates the following scenarios: obtain the user's current location through positioning, fine tune the location after successful positioning, and let the user select the current location through search if positioning fails; Then let the user select the destination through search, an ...
Added by paulmo on Wed, 23 Feb 2022 14:21:34 +0200
Practical solution to obtain mp4 format file information, duration, etc. and exploration of mp4 storage structure
1, Know mp4
The format of MP4 file is mainly defined by MPEG-4 Part 12 and MPEG-4 Part 14. Among them, MPEG-4 Part 12 defines the ISO basic media file format to store time-based media content. MPEG-4 Part 14 actually defines the MP4 file format, which is extended on the basis of MPEG-4 Part 12.
Composition of MP4
MP4 file is composed of ...
Added by sunnypal on Wed, 23 Feb 2022 14:20:26 +0200
Kafka's online deployment scheme for Kafka production optimization
1. Operating system
Deploy on Linux
I/O modelData network transmission efficiency
1.1 I/O model level
The I/O model is the method by which the operating system executes IO instructions.
There are five types
Blocking IONon blocking IOIO multiplexingSignal driven IOAsynchronous IO
We can simply think that the latter model is more efficient ...
Added by PHPycho on Wed, 23 Feb 2022 14:09:46 +0200
Traveling salesman problem (TSP) like code
Definition from Wikipedia
The travelling salesman problem (also called the travelling salesperson problem or TSP) asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city?"
Recently, in order to ...
Added by android6011 on Wed, 23 Feb 2022 14:02:53 +0200
Redis note 7: redis master-slave replication
redis master-slave replication
concept
Master slave replication refers to copying data from one Redis server to other Redis servers. The former is called Master/Leader and the latter is called Slave/Follower. Data replication is one-way! It can only be copied from the master node to the slave node (the master node is dominated by writ ...
Added by swebajen on Wed, 23 Feb 2022 13:54:08 +0200
Super detailed thread pool usage resolution
preface
Java thread pool is the most used concurrent framework. Almost all programs that need to execute tasks asynchronously or concurrently can use thread pool. Rational use of thread pool can bring several benefits:
(1) reduce resource consumption. Reduce the consumption caused by thread creation and destruction by reusing the created thre ...
Added by wilbur on Wed, 23 Feb 2022 13:50:37 +0200