2022-10-15 10:05:34 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<title>Document</title>
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div id="app">
|
|
|
|
|
<input type="radio" value="男" v-model="sex">男
|
|
|
|
|
<input type="radio" value="女" v-model="sex">女
|
|
|
|
|
<br> data中sex的数据:{{sex}}
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
2022-11-19 11:19:25 +08:00
|
|
|
|
<script src="../00-tools/JavaScript/vue.js"></script>
|
2022-10-15 10:05:34 +08:00
|
|
|
|
<script>
|
|
|
|
|
const vue = new Vue({
|
|
|
|
|
el: "#app",
|
|
|
|
|
data: {
|
|
|
|
|
message: "你好呀",
|
|
|
|
|
sex:"男"
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
</html>
|