Blogger Information
Blog 250
fans 3
comment 0
visits 323103
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Vue自学:v-model结合select类型使用
梁凯达的博客
Original
1450 people have browsed it

<!DOCTYPE html>

<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<title>Vue自学:v-model结合select类型类型使用</title>
</head>
<body>
<div id="app">
<select name="" v-model="isSelect">
<option value="苹果">苹果</option>
<option value="榴莲">榴莲</option>
<option value="花生">花生</option>
<option value="番茄">番茄</option>
<option value="橄榄">橄榄</option>
</select>
<h3>你选择的是:{{isSelect}}</h3>
</div>
</body>
<script type="text/javascript">
const app = new Vue({
el:’#app’,
data:{
isSelect:’花生’,
},
methods:{

}
})
</script>
</html>

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post