Vue basic learning

Quoted from: https://mrbird.cc/Vue-Learn-Note.html mrbird boss blog Getting started with Vue <!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>todoList</title> <script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script></head><body><di ...

Posted by kevintynfron on Mon, 17 Jan 2022 16:05:36 +0100

Ajax introduction, encapsulation, synchronous and asynchronous & Ajax related interview questions

1, Introduction to Ajax (1) What is Ajax? Ajax = asynchronous JavaScript and XML;Ajax is a technology for creating fast and dynamic web pages;Ajax can make web pages update asynchronously by exchanging a small amount of data with the server in the background. This means that a part of the web page can be updated without reloading the whole we ...

Posted by kevdotbadger on Mon, 17 Jan 2022 11:21:19 +0100

Advanced JavaScript - ES6

1, New syntax for ES6 Let: the variables declared by let are valid only at the block level Variables declared with the let keyword have block level scope. Variables declared with var do not have block level scope. <script> if (true) { let b = 20; console.log(b); // 20 } console.log(b); // b is not ...

Posted by phpizza on Mon, 17 Jan 2022 06:58:21 +0100

Two practices on Websocket (Vue project realizes online chat & Angular project pushes chart data in real time on the home page)

Abstract: This article records my two practical experiences in using websocket. In the first practice, I stepped on a lot of holes. The second practice is handy, but many theories are still lacking. Through this article, from theory to practice, we won it all in one fell swoop. catalogue 1, Websocket theory (1) What is Websocket? (2) What i ...

Posted by SithLordKyle on Mon, 17 Jan 2022 02:36:14 +0100

Axios api, js structurally defines and invokes business api interfaces.

axios-api @no-996/axios-api A tool based on axios that can create structured instances has the following characteristics: Based on axios and compatible with axios api, it can be migrated and used seamlessly. Two common request termination scenarios (based on cancelToken) are built in to prevent repeated interface calls. The built-in caching me ...

Posted by eddiegster on Sun, 16 Jan 2022 22:37:31 +0100

[source code analysis] Redux thunk

preface In the previous study of redux, I learned that applymeddleware is in a fog, so this time I will learn the source code of redux thunk, hoping to help me deeply understand the source code implementation of applymeddleware. Role of Redux thunk When we use dispatch(action) in redux, the action must be a simple object, but if we want to p ...

Posted by LOUDMOUTH on Sun, 16 Jan 2022 20:15:05 +0100

javascript Chapter 2 process control - branches

Chapter II branch structure of process control Understand the three structures of the program Be familiar with the program execution process of sequential structure Skillfully use if statement to realize branch condition judgment Skillfully use switch statements to judge multiple branches ECMA basic syntax: Annotation, variable, o ...

Posted by lisa71283 on Sun, 16 Jan 2022 17:50:31 +0100

kkfileview previews pdf format files to realize multi keyword highlighting and positioning

Recently, I have been working on the file search function (ElasticSearch for search). After searching the document at the front end, I need to preview the document in the browser and highlight and locate the search keywords. Kkfileview, an open source project selected for document preview, can preview documents well, but it does not have the fu ...

Posted by minc on Sun, 16 Jan 2022 16:10:03 +0100

Summary of Vue-CLI2 front end routing usage

1. Install Vue router The reason for using -- save instead of -- save dev here is that it is also needed during generation npm install vue-router --save 2. Create a project using Vue cli 2 (router can be installed or not) If router is installed when creating a project, a router directory will appear in the src directory of the created ...

Posted by poisedforflight on Sun, 16 Jan 2022 15:41:26 +0100

Constructor, instance, prototype object, inheritance

1, Relationship between constructor and prototype object: There is a Star constructor. Each constructor has a prototype object, which is pointed to by the prototype of the constructor Similarly, there is also a property called constructor in the prototype object, which refers back to the constructor The constructor can be regarded as the ...

Posted by footiemadman007 on Sun, 16 Jan 2022 15:22:19 +0100