当前位置:网站首页>What did I read in order to understand the to do list
What did I read in order to understand the to do list
2022-07-03 10:13:00 【DadongDer】
Tip 1
v-text and v-html:v-html You can remove the label from the variable , and v-text You can't , It shows a string
Test data 
Execution effect 
Tip 2
stay input In the input box, we can use v-model Instruction to implement bidirectional data binding
Tip 3
Website to explain :https://cn.vuejs.org/v2/guide/list.html# use -v-for- An array is mapped to a set of elements 

Tip 4 export And export default
1、export And export default Can be used to export constants 、 function 、 file 、 Module etc.
2、 You can use... In other files or modules import+( Constant | function | file | modular ) How to name , Import it into , So that it can be used
3、 In a file or module ,export、import There can be multiple ,export default There is only one
4、 adopt export How to export , Add... When importing { },export default You don't need to
In fact, many times export And export default Can achieve the same purpose , But there are some differences in usage . Pay attention to Article 4 , adopt export How to export , Add... When importing { },export default You don't need to . Use export default command , Specify the default output for the module , This way, you don't need to know the variable name of the module to be loaded .
Boss information :https://www.cnblogs.com/xiaotanke/p/7448383.html
Tip 5 data Use return The parcel
The simple example seen in the rookie tutorial is like this 
Try to understand others
This is something new …
In the original project using componentization, it will be written like this … Netizens said not to use return The package data will be visible throughout the project , Can cause variable pollution ; Use return Variables in post package data only take effect in the current component , No impact on other components .
Tip 6 Connect V-for Use a Dongdong
From the official website of conscience 
push() Add an element to the last side of the array , Successfully returned the length of the current array
pop() Delete the last element of the array , Successfully returned the value of the deleted element
shift() Deletes the first element of the array , Successfully returned the value of the deleted element
unshift() Add an element to the front of the array , Successfully returned the length of the current array
splice() There are three parameters , The first is the subscript of the element you want to delete ( Mandatory ), The second is the number you want to delete ( Mandatory ), The third is to delete
The value you want to replace in the original position ( Optional )
sort() The array is sorted from small to large by default according to the character encoding , The sorted array is returned successfully
reverse() Reverse array , Successfully returned array after reverse order
I can read most of what netizens wrote to do list This is the simplest one I found on the Internet , Completely Xiaobai, I began to find out what I thought I might understand . Here is a record of my enlightenment reading …https://blog.csdn.net/yang_da_da/article/details/79550685
Now I'm going to try my own adaptation …
边栏推荐
猜你喜欢

LeetCode - 1670 設計前中後隊列(設計 - 兩個雙端隊列)

Leetcode interview question 17.20 Continuous median (large top pile + small top pile)

LeetCode - 919. Full binary tree inserter (array)

使用密钥对的形式连接阿里云服务器

LeetCode - 508. 出现次数最多的子树元素和 (二叉树的遍历)

My notes on the development of intelligent charging pile (III): overview of the overall design of the system software

Discrete-event system

CV learning notes ransca & image similarity comparison hash

QT is a method of batch modifying the style of a certain type of control after naming the control

openCV+dlib实现给蒙娜丽莎换脸
随机推荐
Google browser plug-in recommendation
(1) What is a lambda expression
CV learning notes alexnet
LeetCode - 1670 设计前中后队列(设计 - 两个双端队列)
Opencv gray histogram, histogram specification
CV learning notes - reasoning and training
Basic use and actual combat sharing of crash tool
getopt_ Typical use of long function
20220602 Mathematics: Excel table column serial number
Opencv feature extraction sift
openCV+dlib實現給蒙娜麗莎換臉
Leetcode - 933 number of recent requests
Simulate mouse click
Opencv image rotation
Vgg16 migration learning source code
[C question set] of Ⅵ
Crash工具基本使用及实战分享
Cases of OpenCV image enhancement
『快速入门electron』之实现窗口拖拽
20220610 other: Task Scheduler