Vue Router: how to implement a front-end routing?

President Liu returns again. Today, the military industry and lithium battery are catching up, which has injected their own wages and strength into China's economy I believe that for front-end development engineers with a certain foundation, routing is no stranger. It originally originated from the server. In the server, routing describes the ...

Posted by inosent1 on Wed, 08 Dec 2021 01:19:23 +0100

promise and asynchronous programming

promise introduction Promise is a solution for asynchronous programming, which is more reasonable than traditional solutions (callback functions and events). What is synchronization? After the current call is issued, subsequent code cannot be executed before the result is received, and the subsequent code is always online waiting, and synchr ...

Posted by rashu.dr on Tue, 07 Dec 2021 17:08:50 +0100

Iterator and for...of loop

Iterator and for... of loop Concept of Iterator JavaScript's original data structures representing "sets" are mainly arrays and objects. ES6 adds Map and Set. In this way, there are four data sets. Users can also combine them to define their own data structure. For example, the members of the Array are Map and the members of the ...

Posted by Joopy on Tue, 07 Dec 2021 13:27:07 +0100

[typescript] advanced summary of binary search algorithm (including rotation array)

On the question type of binary searchOrdinary dichotomyLC704 binary search simpleLC34 finds the first and last positions of elements in a sorted arrayVariants: rotating arraysLC153 find the minimum value of rotation sort arrayLC33 search rotation sort array mediumDichotomous general skillsThe most commonly used and basic binary search receives ...

Posted by dheeraj4uuu on Tue, 07 Dec 2021 12:44:48 +0100

Javascript learning materials - week2-day5

1, window object 1.BOM   Browse object model     In fact, it is some ability to operate the browser             What can we do:             - Get some browser related information (window size)             - Operate the browser for ...

Posted by Caesar on Tue, 07 Dec 2021 05:14:30 +0100

About how JS can activate the third-party map software on the H5 mobile terminal in Vue (Gaode, Tencent, Baidu)

1, First, encapsulate the method to distinguish whether the current environment is ios or android RunningPlatform() { let ua = navigator.userAgent.toLowerCase() console.log('kernel', ua); // ios if(ua.indexOf('like mac os x') > -1) { this.OS = 'IOS' } // android if(ua.indexOf('android') ...

Posted by MFHJoe on Tue, 07 Dec 2021 04:23:10 +0100

Vue - how Vue monitors data, collects data from forms

catalogue 1, How Vue monitors data     1.Vue monitoring data range     2. How to monitor data in objects     3. How to monitor the data in the array     4. When modifying an element in the Vue array, you must use the following methods:     5. Case display 2, Collect form data 1, How Vue ...

Posted by wendu on Tue, 07 Dec 2021 01:41:54 +0100

Detailed explanation of operators, expressions and statements based on JavaScript

JavaScript basics 02 operator Arithmetic operator Mathematical operators are also called arithmetic operators, including addition (+), subtraction (-), multiplication (*), division (/), and remainder (%) (modulo). () the priority can be raised, and its priority is the same as that calculated in mathematics. Multiply and divide first, then ...

Posted by afatkidrunnin on Mon, 06 Dec 2021 23:54:09 +0100

JavaScript foundation first day

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>JavaScript Basics - Introduction mode</title> </head> <body> <!-- External form: through script of src Property to introduce independent .js file --> <script src="demo.js"> // The code here will be ignore ...

Posted by manianprasanna on Sun, 05 Dec 2021 18:18:09 +0100

2021SC@SDUSC Source code analysis of "F2 mobile terminal visualization scheme" -- Node terminal

Node side rendering F2 Although F2 is used for charting based on Html5 Canvas by default, for the current runtime environment, F2 can also be used for charting as long as it can provide the same context interface as the Html5 Canvas context environment. The following table shows the functional comparison of F2 available in each operating en ...

Posted by ljCharlie on Sun, 05 Dec 2021 17:18:00 +0100