css selector type:
Basic selector (element selector, class selector, attribute selector)
1. The element selector is only used to select one element. For example, the following code selects all div s:
Posted on Sat, 02 May 2020 21:05:09 -0700 by pasychosheep
numpy create array
#Import the numppy library and rename numpy to np.
import numpy as np
#1). Create an array: a, b, c create the same array, choose any one;
#Method 1: Transform the data type to ndarray by passing the array/list directly into the array method.
a = np.array([1, 2, 3, 4, 5])
#The value passed in by the array method can be a r ...
Posted on Sat, 02 May 2020 19:08:51 -0700 by malam
In web pages, it is often necessary to upload pictures and preview them. In most cases, images are uploaded to the back-end through ajax, and then the upload status and results are fed back to the front-end for preview. Here we introduce two quick upload image preview methods, which can quickly preview the image without ...
Posted on Sat, 02 May 2020 15:44:42 -0700 by ciaran
js consists of three parts
2. DOM document object model
Simply put: DOM provides some API s (interfaces) that give developers the ability to operate the page
DOM の common node types
Element node. Element? Node (1)
Document nod ...
Posted on Sat, 02 May 2020 12:20:25 -0700 by mac25
Summary of knowledge points
When you need to make interactive effects such as turning the mouse wheel to enlarge the page font, the mousewheel event is used. In fact, most browsers (IE6, IE7, IE8, Opera 10+, Sa ...
Posted on Sat, 02 May 2020 11:06:51 -0700 by KingWylim
With canvas stylized particles, we first need to paint a canvas texture. For example:
This is a little monster in bean eater drawn by canvas in the tutorial, and what we want to achieve today is to use it to stylize particles.
Through the code in the previous section, we need to extend it again. First, we need t ...
Posted on Fri, 01 May 2020 13:24:21 -0700 by mdaoust
Today is the penultimate day of 17 years. Tomorrow is the next day. At the end of 17 years, I will share a gadget with my friends.
At ordinary times, we often meet such a demand: an object array, each item in the object forms a parent-child relationship through id and pid, we need to take out all the child nodes under ...
Posted on Thu, 30 Apr 2020 12:27:45 -0700 by sarathi
1, react installation mode
Import method: script tag import
1. You can go to the react official website to download, or you can directly use the React CDN Library of BootCDN. The address is as follows:
<script src="https://cdn.bootcss.com/react/15.4.2/r ...
Posted on Thu, 30 Apr 2020 11:40:40 -0700 by Idri
Sometimes when displaying the Force guide diagram, you want to add some click events, and expand more child nodes one by one with the click events of nodes. This kind of visualization can bring clear use effect. The script I wrote this time is used to control the node folding effect of Force.
Time: September 9, 2015
Note: I hope thi ...
Posted on Thu, 30 Apr 2020 11:35:10 -0700 by alex57
openlayers version: 4.6.4
Implementation function: move the mouse into the feature to modify the style of the feature
Before mouse move in:
After the mouse is moved in:
Style code before move in: styleFunction used here
//Face style method
var s ...
Posted on Thu, 30 Apr 2020 06:22:26 -0700 by tekrscom