Vue instructions: interpolation ({, v-text and v-html), v-model, v-on
instructions
Directives: special attributes with v-prefix. For example, the v-model in the entry case represents two-way binding.
Interpolation expression
Interpolation: used where vue instance data needs to be displayed
You can invoke the data properties and functions of the instance in the interpolation expression.
Curly bracket ({})
Fo ...
Posted by vaaaska on Thu, 21 Oct 2021 17:46:44 -0700
Vuex state manager
1 Introduction
Vuex is a state management mode specially developed for Vue.js applications. It uses centralized storage to manage the state of all components of the application, and ensures that the state changes in a predictable way with corresponding rules. ...
Posted by kellerkind on Thu, 21 Oct 2021 07:28:49 -0700
Nearly 10000 words Vue detailed basic tutorial
catalogue
1.1 concept (based on vue2)
1.2 vue/cli scaffold
1.2.1 create project startup service
1.2.2 explanation of project directory (can be omitted)
1.2.3 custom configuration
1.2.4 eslint
1.2.5 single vue document
1.3 interpolation expression
1.4 MVVM design pattern
1.5 Vue instruction (key points, remember with a small book)
1 ...
Posted by phpyoungdeveloper on Wed, 20 Oct 2021 10:16:00 -0700
Vue Component Mechanism
1 Component Foundation
1.1 Component Concepts
Components can extend HTML elements by encapsulating reusable HTML, CSS, and JS snippets. Components are similar to vue instances, such as having a template attribute inside the component to specify a template and an e ...
Posted by Linjon on Tue, 19 Oct 2021 11:34:34 -0700
Intl.NumberFormat is used for numerical calculation
Intl.NumberFormat is an international digital processing scheme. It can be used to show the preference of different countries for digital processing. However, in general, we still process more Chinese numbers, but I find this Intl.NumberFormat is also very useful. Digital grouping
new Intl.NumberFormat('zh-CN',{useGrouping:true}).format(123456 ...
Posted by advoor on Tue, 19 Oct 2021 10:47:18 -0700
nginx common bug summary
1. The front-end route conflicts with the back-end route
First knowledge problem
Suppose there is a folder of / vue in the nginx project directory, and I also configure a vue project routing service of / vue. At this moment, if I enter localhost:8080/vue, will the browser display the static web page under the vue folder or the configured vue ...
Posted by axm on Mon, 18 Oct 2021 17:34:43 -0700
Implement a color selector from scratch (native JavaScript Implementation)
Project directory and file creation
First of all, we don't need to build the project environment. We still directly use the simplest way, that is, the introduction method, to create the project, which makes it convenient for us to test while writing. Create an empty directory named ColorPicker, create a JS file, color-picker.js, then create an ...
Posted by athyzafiris on Thu, 14 Oct 2021 16:56:30 -0700
Vue2.x learning notes
Scaffold file structure
├── node_modules
├── public
│ ├── favicon.ico: Tab Icon
│ └── index.html: Main page
├── src
│ ├── assets: Storing static resources
│ │ └── logo.png
│ │── component: Storage components
│ │ └── HelloWorld.vue
│ │── App.vue: Summarize all components
│ │── main.js: Entry file
├── .gitignore: git Configu ...
Posted by livepjam on Wed, 13 Oct 2021 16:29:00 -0700
Explain the virtual DOM and Diff algorithm in simple terms, and the differences between Vue2 and Vue3
Because the Diff algorithm calculates the difference of virtual DOM, first pave a little bit of virtual DOM, understand its structure, and then uncover the veil of Diff algorithm layer by layer, in simple terms, to help you thoroughly understand the principle of Diff algorithm
Understanding virtual DOM
Virtual DOM is simply to use JS objects ...
Posted by tomato on Wed, 13 Oct 2021 08:51:49 -0700
Function and principle of key in Vue
1. Let's start with the conclusion
key in Vue is the identification of DOM object;In list display, the default key is index;If the data is only used for display, there is no problem using index as the key;If you use index as the key, and subsequent operations will destroy the order, it will certainly bring efficiency problems. In serious cases ...
Posted by The_Anomaly on Mon, 11 Oct 2021 10:46:24 -0700