JSON(json) detailed tutorial
1, What is JSON?
JSON is a format for storing and transmitting data.JSON is usually used to transfer data from the server to the web page.JSON refers to JavaScript Object NotationJSON is a lightweight text data exchange formatJSON is language independent: JSON uses Javascript syntax to describe data objects, but JSON is still language and ...
Posted by moonie on Mon, 31 Jan 2022 17:47:08 +0100
React advanced -- Hook learning notes
1. Hook introduction
Hook is a new feature added in React 16.8.0. You can use state and other React features in function components.
✌️ Hook usage rules:
Hook s are JavaScript functions, but there are two additional rules for using them:
Hook can only be called on the outermost layer of a function. Do not call in loops, conditional judgemen ...
Posted by JStefan on Mon, 31 Jan 2022 14:51:08 +0100
JQuery one stop explanation
Why use JQuery?
When using native js to obtain tags, it was once very troublesome, and the problem of blank documents should be considered. The method of obtaining tags is very single. It always needs to obtain the target tags through parent nodes and child nodes, and the animation effect of js is weak; JQuery encapsulates js. Many dom operati ...
Posted by s1akr on Mon, 31 Jan 2022 12:20:20 +0100
js basic ~ data type, operator, if, while, for
1. Run js in the page
(1)javascript, abbreviated as js, is a functional and weakly typed scripting language. (2) In a web page:
HTML is responsible for what is in the page. CSS is responsible for what the page looks like. JS is responsible for what the page can do. JS can control HTML and CSS
(3)Js runs in two ways in the page:
Wri ...
Posted by mwilson on Mon, 31 Jan 2022 10:06:47 +0100
20 JavaScript tips and tricks to improve code efficiency
Convenient and practical technology that can reduce the number of lines of code and speed up the development work!
In our daily tasks, we will write functions such as sorting, searching, finding unique values, passing parameters, exchanging values and so on, so here I list my shorthand skills! ✌🏻
JavaScript is really a great language ...
Posted by trace on Mon, 31 Jan 2022 06:32:00 +0100
2020-03 front end technology summary
March 30, 2020 Monday
# How to restore JSON data after it is transferred to Blob
When axios requests to download the file interface, the responseType: 'blob' is generally set. If the file returns normally, there is no problem, but if there is a problem in the background file processing or authentication, the interface returns JSON format data ...
Posted by nitko on Mon, 31 Jan 2022 05:35:15 +0100
Getting Started with D3: Chapter 3
Chapter 3. Scales, Axes and Lines
This chapter introduces the processing of various scales, coordinate axes and the use of broken lines. As mentioned at the beginning, a basic problem to consider when drawing visual charts is how to present the actual data values on the page in an appropriate proportion of pixel size and color. D3 has done a ...
Posted by OMorchoe on Mon, 31 Jan 2022 02:21:05 +0100
Front end review (JS) -- 4. Recursion, closure, separation before and after - data interaction, http, node
catalogue
21. Recursion
(1) Case 1:
(2) Case 2:
22. Closure
(1) Understand
1. How to read the local variables inside the function from the outside?
2. Concept of closure
3. Why do I need closures
(2) Closure case
32. Front back separation - data interaction
(1) Data interface specification process
1. Interface documents:
1. Underst ...
Posted by Thrakorzog on Sun, 30 Jan 2022 18:54:50 +0100
Understanding BOM and DOM from browser architecture
Browser architectureJavaScript runs in the browser, BOM is the bridge between JavaScript code and browser, and DOM is used to operate various tag elements.BOM includes window, history, location, documentDOM includes Document (whole Document), Element (label Element), CharacterData (character data) and Attr (attribute), which can be further divi ...
Posted by lorddraco98 on Sun, 30 Jan 2022 18:00:21 +0100
this points to the problem
What are the pointer functions that change the this pointer inside a function and what are their differences? What are the directions for this? Code Analysis Questions:
var name = 'window'
var person1 = {
name: 'person1',
show1: function () {
console.log(this.name)
},
show2: () => console.log(this.name),
show3: function () {
...
Posted by yuppicide on Sun, 30 Jan 2022 16:19:19 +0100