HTML5 CANVAS Bullet Screen Plug-in (V3.0.0)
Preface
To tell the truth, from Second Edition Half a year later, I thought I might not be able to write the third edition. I could reconstruct the second edition of the code at most, but it took me about a week to continue the third edition. The main reason is that in the second edition, the player module and the bullet screen module are too s ...
Posted by mustang on Sat, 15 Jun 2019 14:54:31 -0700
Closure and its role
formation
When you create other functions inside a function, you create closures, which are functions that can read variables inside a function.
The scope chain of closures:
The scope of one's own
Scope of External Functions
global scope
Normally, the scope and variables of a function will be destroyed after execution, b ...
Posted by wesley1189 on Sat, 15 Jun 2019 13:24:30 -0700
js learning summary - built-in dom operation attributes and methods
DOM(document object model): Document object model,
Provides a way to get the elements in the page:
document.getElementById();
Context. getElements ByTagName (TAGNAME)// Get all tags named TAGNAME for the neutron grandchildren of the specified container
Context. getElements ByClassName (CLASSNAME) // Incompatible under ie6-8
document.getElements ...
Posted by grayson on Fri, 14 Jun 2019 15:12:05 -0700
Connection pool (1): Why can I share a database connection when it is closed?
There has always been a question about the use of database connection pools:
During the use of database connection, the exclusive requirement must be met (other threads cannot access it). Close the database connection after use. The problem is that the database connection has been closed. How can other threads use it?
With this in mind, ...
Posted by NeMoD on Thu, 13 Jun 2019 09:26:08 -0700
Document upload forms
As programmers, we often use the upload and download functions of files. When it's time to use it, check all kinds of information. There's wood. There's wood. In order to facilitate the next use, here is a summary and a memorandum.
Using Form to Upload Files
The most primitive, simple and rude file upload.
Front-end code:
//Mode 1
<form acti ...
Posted by mailtome on Tue, 11 Jun 2019 15:03:08 -0700
css style fragment
1. Vertical alignment
If you use CSS, you will be confused: how do I align elements in the container vertically? Now, using CSS3 Transform, you can gracefully solve this puzzle:
.verticalcenter{
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%) ...
Posted by Big_Rog on Mon, 10 Jun 2019 16:10:37 -0700
Using canvas to realize wizard animation
The article was first published on a personal blog: http://heavenru.com
In the recent project, we need to implement a sprite animation. The material side only provides a short video material. So before we implement the sprite animation, we first introduce two tools to help us better meet the requirements. In this article, two command-line tools ...
Posted by chris.zeman on Sat, 08 Jun 2019 15:20:26 -0700
Notes-JavaWeb Learning Tour 8
Window Object-Timer Method
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
//Timer that executes only once
function fun(){
alert("blast");
}
//Parameter: js code or method ob ...
Posted by yaron on Thu, 06 Jun 2019 10:24:20 -0700
A General Zepto Source Analysis (3) - Evet Module
A General Zepto Source Analysis (3) - Evet Module
Ordinary passers-by, ordinary look. The latest version 1.2.0 is used in the analysis.
zepto can be made up of many modules. The default modules include zepto core module and event, ajax, form, ie. Event module is also one of the more important modules. We can use the method provided by zepto to ...
Posted by koopkoop on Tue, 04 Jun 2019 14:32:36 -0700
Input/Select Dropdown Box-Asynchronous Programming
Copyright Statement: This is a blogger's original article. If you want to reprint or cooperate, please email me and inform me that I will reply within 24 hours. Mailbox: lengroubao@163.com
In actual development, we will use native components/interfaces provided by various browsers, HTML, JS, etc., but this does not necessarily meet our requir ...
Posted by homerjsimpson on Tue, 04 Jun 2019 10:34:54 -0700