Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <body>
- <div id="app">
- 男<input type="radio" name="sex" value="男" v-model="sex">
- 女<input type="radio" name="sex" value="女" v-model="sex">
- <br>
- {{sex}}
- </div>
- </body>
- <script>
- var vm = new Vue({
- el: '#app',
- data: {
- sex: ''
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement