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?
Web front-end optimization best practices: conten...
Preface This article introduces a simple BAT scri...
1. First introduce several commonly used MySQL fu...
Official website address: https://dev.mysql.com/d...
This article example shares the specific code of ...
1. Use css sprites. The advantage is that the smal...
Absolute positioning method: (1) Set the parent e...
Table of contents 1. Embed CSS styles directly in...
# Installation daemon configuration for Redis on ...
1. Service method Check the firewall status: [roo...
You know that without it, the browser will use qui...
The test environment of this experiment: Windows ...
1.This points to 1. Who calls whom? example: func...
This article shares the MySQL installation and co...
Preface To solve the single point of failure, we ...