其他分享
首页 > 其他分享> > 处理用户输入

处理用户输入

作者:互联网

<!DOCTYPE html>
<html lang="zh">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <link href="../css/style.css" rel="stylesheet"> </head>

<body>
<div id="myApp">
    <p>您最喜欢的游戏是:{{mygame}}</p>
    <input v-model="mygame">
</div>
<script>
    var myApp = new Vue({
        el: '#myApp',
        data: {
            mygame: '超级马里奥GTA'
        },
    });
</script>
</body>

</html>

 

标签:el,Vue,GTA,处理,用户,mygame,输入,myApp,马里奥
来源: https://www.cnblogs.com/Jeely/p/11057097.html