3.6 v-model 双向数据绑定
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<div>
<div>
<label>年龄:</label>
</div>
<div>当前输入的年龄是: {{age}}</div>
<button @click="add">加一岁</button>
<button @click="alertYear">弹出年龄</button>
</div>
</html>
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 Eternal Night
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果