Nunjuks foundation 1 (Xiaozhou report notes)
A web server is created through Koa and can respond to different pages according to different user request paths. However, the content of each page is sent to the browser in the form of string. This development method is not friendly. We prefer to send html pages directly.
The template engine can solve this problem. Through the template engine ...
Posted by zuperxtreme on Wed, 05 Jan 2022 18:51:40 +0100
JS event binding, event triggering, event object, event delegate, throttling and anti chattering
This is some basic content of JavaScript events previously sorted out.
1, The origin of the event
With the rapid development of the Web, the static page of HTML+CSS can no longer meet the needs of users, so there is JavaScript that allows users to interact with the browser, and the great hero to realize this function is what we are talking ab ...
Posted by sarakmo on Wed, 05 Jan 2022 15:17:52 +0100
"js learning notes" object oriented
1, Cognitive object
An object is a collection of "key value pairs", which represents the mapping relationship between attributes and values.
var xiaoming = {
name: 'Xiao Ming',
age: 12,
sex: 'male',
hobbies: ['Football', 'programming']
};
Attribute name (key): attribute value (value) In JS, braces represent o ...
Posted by not_skeletor on Wed, 05 Jan 2022 14:08:29 +0100
Day 21 of learning
Cross domain
What is cross domain The browser has a homology policy. When the 'protocol name', 'domain name' and 'port' of the url of the web page are the same, it is homology. One difference is cross domain Homology strategy The same origin policy restricts documents or scripts loaded from the same source, such as songs, from interacting with ...
Posted by jrbush82 on Wed, 05 Jan 2022 14:07:09 +0100
On the sorting and building process of Webpack
preface
Nowadays, many web pages can actually be regarded as function rich applications, which have complex JavaScript code and a lot of dependency packages. Modularity allows us to refine complex programs into small files; Similar to TypeScript, a development language developed on the basis of javascript: it enab ...
Posted by Namadoor on Wed, 05 Jan 2022 13:26:26 +0100
JS expressions and operators in "JS learning notes"
1, What are expressions and operators
Expression: an expression consisting of operands and operators.
Classification of expressions: arithmetic, relation, logic, assignment and synthesis.
2, Arithmetic expression
2.1 arithmetic operators
significanceoperatorplus+reduce-ride*except/Surplus%
It is recommended to use () to enforce prio ...
Posted by yellowzm on Wed, 05 Jan 2022 11:47:05 +0100
React learning notes -- redux
1, redux understanding
1. Learning documents
English documents: https://redux.js.org/Chinese documents: http://www.redux.org.cn/Github: https://github.com/reactjs/redux
2. What is redux
redux is a JS library dedicated to state management (not a react plug-in library).It can be used in react, angular, vue and other projects, but it is ba ...
Posted by mikesheridan5 on Wed, 05 Jan 2022 11:29:44 +0100
The six most popular questions for interviewers are clear float and BFC
prefaceHello, I'm Lin Sanxin. Clearing the float is the most frequently asked question in CSS during the interview. When the interviewer asks you how to clear the float, he certainly doesn't want you to simply answer the method of clearing the float, but wants you to answer the BFC. Even if he doesn't want you to answer, you should take the ini ...
Posted by slamMan on Wed, 05 Jan 2022 11:21:05 +0100
Logstash & Real-time analysis of Web logs | Cloud computing
1. Install Logstash
1.1 problems
This case requires:
Create a virtual machine and install logstashMinimum configuration: 2cpu, 2G memory, 10G hard diskVirtual machine IP: 192.168.1.47 logstash
1.2 steps
To implement this case, you need to follow the following steps.
Step 1: install logstash
1) Configure the host name, ip and yum so ...
Posted by Rose.S on Wed, 05 Jan 2022 10:09:34 +0100
"JS learning notes" JS array
1, What is an array
Array, as its name implies: the type used to store a set of related values.
Array can easily sum a group of values, calculate the average value, traverse item by item and so on.
var scoreArr = [87, 89, 93, 71, 100, 68, 94, 88];
Array names are used to end with Arr.
2, Definition of array
2.1 square bracket de ...
Posted by codrgii on Wed, 05 Jan 2022 09:40:54 +0100