<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单控件处理之使用vue控制radio表单的实例操作 </title>
    <script src="vue.js"></script>
</head>
<body>
<div >
    <div>{{field.type}}</div>
    <input type="radio" v-model="field.type" value="draft">草稿
    <input type="radio" v-model="field.type" value="send">发布

</div>
<script>
    var app = new Vue({
        el: '#lantian',
        data: {
            field: {
                type:'send',
            }
        }
    });
</script>

</body>
</html>

  

相关文章:

  • 2022-12-23
  • 2021-10-16
  • 2021-12-24
  • 2022-02-07
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2023-04-04
  • 2021-11-28
  • 2021-12-03
  • 2021-08-02
  • 2022-02-06
相关资源
相似解决方案