[JavaScript] Remanufacturing
Get label element
Learning objectives
Be able to write out the operation of getting label elements
1. Get tag element
You can use getElementById on * * built-in object document * * Method to get the tag element with id attribute set on the page, get an html object, and then assign it to a variable, such as:
<script type="text/java ...
Posted by manishdugar on Thu, 02 Dec 2021 19:15:18 -0800
Material UI usage feedback
In recent work, we need to develop the H5 page on the mobile terminal. Instead of using the familiar react + antd mobile, react + taro UI and Vue + uview, we used react + material UI to make a new attempt. And just recently, react router / react router DOM forcibly iterated a large version with hooks mode @6;Purpose: after getting tired of the ...
Posted by madavies on Thu, 02 Dec 2021 14:18:00 -0800
wsjls-zw:16, object-oriented and prototype and prototype chains
Object-oriented
What is object-oriented programming?
Object-oriented is a programming idea that is often compared with process-oriented.
The process-oriented focus is on verbs, which analyze the steps needed to solve a problem, write functions to implement each step, and call functions in turn.
Object-oriented focuses on the subject and pre ...
Posted by blueman378 on Thu, 02 Dec 2021 09:03:54 -0800
These 8 js techniques can make your development get twice the result with half the effort
Here I'll share with you 8 useful js tips I've learned recently. No more nonsense. Let's write the code
1. Ensure the array value When using grid, you need to recreate the original data, and the column lengths of each row may not match. To ensure that the lengths of mismatched rows are equal, you can use the Array.fill method
let array = Ar ...
Posted by kevin777 on Wed, 01 Dec 2021 13:57:00 -0800
ES6 learning Chapter 5 regular extension
prefaceThis chapter introduces the extension of regular. Some knowledge that is not commonly used can be understood.Link to the original text of this chapter: Regular extensionRegExp constructorStarting from ES6, if the first parameter of RegExp constructor is a regular object and the second flag exists and is a flag parameter, TypeError will n ...
Posted by paulmo on Wed, 01 Dec 2021 07:04:10 -0800
Front end learning data structure and algorithm quick start series - recursion
recursion
The concept of recursion
Recursion is a method to solve a problem. It starts from solving each small part of the problem to solving the initial big problem.
Recursion usually involves calling the function itself, directly calling itself, or indirectly calling itself, which are recursive functions. Like this:
// Call itself directl ...
Posted by dan231 on Wed, 01 Dec 2021 05:57:34 -0800
vue3 learn to jot down 11
Deep component
Provide/Inject
Usually, we use prop when we need to transfer data from the parent component to the child component. However, for deeply nested component systems, sometimes deep sub components need part of the contents of the parent component. At this time, it will be very troublesome to still use the prop mechanism. For examp ...
Posted by diode on Tue, 30 Nov 2021 22:59:14 -0800
Go through axios completely and never be afraid to write requests again
axios request method
It mainly includes get, post, put, patch and delete
get get data
post Submit data (form submission + file upload)
put Update data (push all data to the server)
patch Update data (only the modified data is pushed to the back end)
delete Delete data
get method
Writing method Call type
axios.get('/data.json').the ...
Posted by ppera on Tue, 30 Nov 2021 19:32:12 -0800
Template Engine? Read this article to understand
concept
Template engines allow programs to separate interfaces from data, business code from logical code, which greatly improves development efficiency, and good design makes code reuse easier.
It's no use just looking at hard concepts. Let me explain in detail what this template engine is.
Suppose you now open your computer browser, e ...
Posted by toms100 on Tue, 30 Nov 2021 18:25:51 -0800
Javascript statements and operations and some supplementary contents
1, Statements about Javascript
preface:
Our js code is executed sequentially (from top to bottom)Logical branching is to decide whether to execute some code according to the conditions we set
1. Program statement:
Program = statement + data structure + algorithm
2. Conditional statements:
Definition: determines which statements need to be ...
Posted by srarcade on Tue, 30 Nov 2021 17:01:42 -0800