当前位置:网站首页>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-112: path sum
- is_ power_ of_ 2 judge whether it is a multiple of 2
- Leetcode-513: find the lower left corner value of the tree
- Anaconda installation package reported an error packagesnotfounderror: the following packages are not available from current channels:
- Qcombox style settings
- LeetCode - 715. Range module (TreeSet)*****
- 01 business structure of imitation station B project
- LeetCode - 508. Sum of subtree elements with the most occurrences (traversal of binary tree)
- What can I do to exit the current operation and confirm it twice?
- 20220602 Mathematics: Excel table column serial number
猜你喜欢

RESNET code details

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

Basic use and actual combat sharing of crash tool
![[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)](/img/19/5dc152b3fadeb56de50768561ad659.jpg)
[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)

Opencv image rotation

Opencv feature extraction - hog

Dictionary tree prefix tree trie

Installation and removal of MySQL under Windows

CV learning notes - image filter

LeetCode - 1670 设计前中后队列(设计 - 两个双端队列)
随机推荐
2.2 DP: Value Iteration & Gambler‘s Problem
Deep learning by Pytorch
Vscode markdown export PDF error
Modelcheckpoint auto save model
Dynamic layout management
CV learning notes - BP neural network training example (including detailed calculation process and formula derivation)
20220601 Mathematics: zero after factorial
20220606 Mathematics: fraction to decimal
Leetcode-404:左叶子之和
『快速入门electron』之实现窗口拖拽
Connect Alibaba cloud servers in the form of key pairs
LeetCode 面试题 17.20. 连续中值(大顶堆+小顶堆)
Tensorflow2.0 save model
20220602数学:Excel表列序号
LeetCode - 706 设计哈希映射(设计) *
LeetCode - 5 最长回文子串
Opencv gray histogram, histogram specification
1. Finite Markov Decision Process
20220609 other: most elements
LeetCode - 508. 出现次数最多的子树元素和 (二叉树的遍历)