SHARE
TWEET

Untitled

a guest May 15th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <body>
  2.     <div id="app">
  3.         男<input type="radio" name="sex" value="男" v-model="sex">
  4.         女<input type="radio" name="sex" value="女" v-model="sex">
  5.         <br>
  6.         {{sex}}
  7.     </div>
  8. </body>
  9.  
  10.  
  11. <script>
  12.     var vm = new Vue({
  13.         el: '#app',
  14.         data: {
  15.             sex: ''
  16.         }
  17.     });
  18. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top