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

JavaScript Sanitizer API: the native WEB security API appears

On October 18, the Web Platform Incubator Community Group in W3C published the draft specification of HTML Sanitizer API. This draft is used to solve the problem of how browsers solve XSS attacks.XSS cross site scripting attacks are a headache for developers in network security. This attack usually refers to injecting malicious instruction code ...

Posted by T_Hayden on Tue, 30 Nov 2021 22:08:04 -0800

[back end integration] new program Day3

1. Explanation of spring framework 1.1 single case and multiple cases 1.1.1 description of single case and multiple cases Singleton: there is only one singleton in memory (even if it is not created, the system defaults to singleton)Multiple examples: there may be multiple copies in memory 1.1.2 create project springdemo5_base   ...

Posted by xcali on Tue, 30 Nov 2021 21:46:55 -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

Do you really know arrow functions

highlight: a11y-dark theme: channing-cyan Arrow function 🙊 I believe everyone has used the arrow function. People who can use it have tried it repeatedly. They are afraid that if they use it wrong, they may choose not to use it. It is a matter of multiple codes and a few lines of words. But people who have used it say it's really cool. Then ...

Posted by madmindz on Tue, 30 Nov 2021 15:19:53 -0800

Operation of JavaScript node

Explain the nodes and elements first Element: all tags in the page, and each html tag is an element node: all contents in the page, including labels, attributes (attributes of labels), text (text, line feed, space, carriage return), even elements are nodes nodeType: type of node: 1 --- label 2 - properties 3 - text nodeName: node name: Label ...

Posted by lli2k5 on Tue, 30 Nov 2021 14:37:52 -0800

Sliding events of Hongmeng learning notes (common actions)

Tips: Slide event: after clicking, slide this module. Common scenes: rotation chart sliding, article list up and down linkage, novel page turning, etc. Common actions of sliding events: Press, move and release   We learned the click, double click and long press events. Today we will learn a new knowledge point, sliding event, whi ...

Posted by Jeb. on Tue, 30 Nov 2021 09:06:41 -0800

Simple instructions for vue

Vue Componentization, virtualization dom, MVVM (features) Author of vue: you Yuxi (official website) Vue.js) Use of vue: vue features: What is a component? Encapsulate the code into a component that everyone can use Virtual dom is a virtual space (space for time) Ajax requests an array. How to put it in the array? Add one or more for loo ...

Posted by nofxsapunk on Tue, 30 Nov 2021 08:59:40 -0800