"Everything wins" fireworks show you may not know

🙇 preface In the twinkling of an eye, it's the Spring Festival again, and this year's Spring Festival is just my life year 🐯. Because of the epidemic, I may not be able to go home for the new year again. I still want to go back to see the fireworks and feel the flavor of the next year 🧧. Since you can't go back, make one by yourself ~ enjo ...

Added by andy666 on Mon, 31 Jan 2022 14:46:53 +0200

Explore the implementation logic of Vue3's keep alive and dynamic components

Keep alive component is a component provided by Vue. It can cache component instances and avoid component mounting and unloading in some cases. It is very practical in some scenarios. For example, we recently encountered a scenario in which a component uploads a large file is a time-consuming operation. If you switch to other page contents dur ...

Added by joe1986 on Mon, 31 Jan 2022 13:49:52 +0200

Express learning notes

Get started quickly a. Install express, currently using version 4.17. Enter the following command in the terminal: yarn add express b. Create an 'app JS' file, introduce express, create an Express instance, and listen to port 3000. //app.js const express = require('express'); const app = express(); app.listen(3000, () => { console. ...

Added by l_evans on Mon, 31 Jan 2022 11:32:40 +0200

Implement the mini version of Vue

preface Vue framework has been used for more than two years. I found that I don't have a deep understanding of Vue, and I only stay where I can use Vue. I don't know much about some details. I recently watched the open class of Lubai at station b. combined with the understanding of the source code of Vue official website, I plan to imitate ...

Added by VBAssassin on Mon, 31 Jan 2022 10:25:56 +0200

JavaScript advanced learning notes - regular expressions

1, Regular expression 1. Regular expression overview Regular Expression is a pattern used to match the composition of characters in a string. It is used to detect whether the composition of a string meets certain requirements or rules. It is usually used to verify the form: for example, to verify that the user name can only be composed of Eng ...

Added by happypete on Mon, 31 Jan 2022 06:47:51 +0200

JS method for judging data type

catalogue 1, Data types in JS 2, Methods of judging data types in JS 1. Using typeof 2. Using instanceof 3. Use object prototype. toString. call 4. Using constructor 1, Data types in JS ECMAScript has five simple data types (also known as basic data types): Undefined, Null, Boolean, Number, and String. There is also the complex data ...

Added by sqlnoob on Mon, 31 Jan 2022 04:38:11 +0200

JavaScript Advanced Programming -- String type

The common primitive types of ECMAScript are String type. We can declare a String directly through literal quantity var str = 'hello world!' str.length //12 str.charAt(2) //l The original type of data itself is not an object, so there should be no properties and methods, but the original value of String type can refer to some methods It can ...

Added by pankirk on Mon, 31 Jan 2022 03:24:46 +0200

Textarea height automatic extension_ Realize textarea highly adaptive

The height of textarea is self-adaptive, the height of textarea is automatically increased, and the height of textarea is automatically extended. In this paper, by copying the height of textarea html For another element, pre is set to expand automatically, so there will be no feeling of detention, and the interaction effect is good.   technol ...

Added by mshen on Mon, 31 Jan 2022 02:53:52 +0200

Freecodecamp JavaScript elementary algorithm question-1

1. Convert degrees Celsius to degrees FahrenheitThe conversion from Celsius to Fahrenheit is calculated by multiplying Celsius by 9 / 5 and then adding 32Input: convertToF(0) should return a numberInput: - 30Output: - 22Where celsius stands for celsius and fahrenheit for fahrenheitSolution:function convertToF(celsius) { let fahrenheit; fahr ...

Added by 990805 on Sun, 30 Jan 2022 22:41:52 +0200

The front end of Xiaogao's not very good -- Vue

The front end of Xiaogao's not quite walking – Vue preface In this chapter, we will learn Vue's template syntax, Vue's conditional statements, and Vue's circular statements. What you need to know before reading this tutorial: HTML CSS JavaScript This tutorial mainly introduces vue3 Use of version X. 1, Vue templ ...

Added by DavidGS on Sun, 30 Jan 2022 22:06:51 +0200