css selector and its introduction

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: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>css</title> <style> div{ ...

Posted on Sat, 02 May 2020 21:05:09 -0700 by pasychosheep

Data Science Library for python learning

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

Upload image quick preview HTML5 FileReader + Window.URL method

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

JavaScript - recognize DOM-

JavaScript consists of three parts js consists of three parts 1.ECMAscript 2. DOM document object model Simply put: DOM provides some API s (interfaces) that give developers the ability to operate the page 3.BOM DOM の common node types Element node. Element? Node (1) Document nod ...

Posted on Sat, 02 May 2020 12:20:25 -0700 by mac25

Pure JS full screen scrolling / full screen paging

http://blog.csdn.net/tangdou5682/article/details/52351404 Online demo http://ftp592347.host584.zhujiwu.me/js-fullpage/index.html 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

55 Three.js using canvas styled particles

brief introduction 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. process 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

Tree structure menu traversal and path generation method

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

react foundation - from installation

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/react.min.js"></script> <script src="https://cdn.bootcss.com/react/15.4.2/r ...

Posted on Thu, 30 Apr 2020 11:40:40 -0700 by Idri

Implement node foldable by using forces oriented graph of eckarts force

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. By Reese Time: September 9, 2015 Note: I hope thi ...

Posted on Thu, 30 Apr 2020 11:35:10 -0700 by alex57

Remember to add bugs of interactive modification style to openlayers once

openlayers version: 4.6.4 Implementation function: move the mouse into the feature to modify the style of the feature effect: Before mouse move in: After the mouse is moved in: Style code before move in: styleFunction used here //Face style method polygonStyleFunction:function(feature,resource){ var s ...

Posted on Thu, 30 Apr 2020 06:22:26 -0700 by tekrscom