1. Values within loop objects<body> <div id="app"> <!-- Values within loop object--> <ul> <li v-for="item in per"> {{item}} </li> </ul> </div> <script src="./js/vue.js"></script> <script> let vm = new Vue({ el:'#app', data:{ per: id:1, name:'Xiaoming', age:19, sex:"male" } } }) </script> 2. Loop Object3. Looping keys and values<!-- Looping over keys and values --> <ul> <!-- Value key--> <li v-for="(value,key) in per"> {{value}}---{{key}} </li> </ul> This is the end of this article about the properties of You may also be interested in:
|
<<: How to use translate and transition in CSS3
>>: What is the base tag and what does it do?
The question arises This question arose when I wa...
Flex Layout Flex is the abbreviation of Flexible ...
1. Install the Linux system on the virtual machin...
Using NULL in comparison operators mysql> sele...
Table of contents Bubble Sort Selection Sort Inse...
Table of contents Written in front Two-way encryp...
I've been a little busy these two days, and t...
Table of contents What is index pushdown? The pri...
Preface Golang provides the database/sql package ...
Table of contents 1. React.Children.map 2. React....
First, a common question is, what is the relation...
Considering that many people now use smartphones, ...
Table of contents Write docker-compose.yml Run do...
Now, let me ask you a question. What happens when...
illustrate In front-end development, you often en...