vue.js的入门

我们组现在因为开发新业务,所以现在转到前端去了,目前是带薪学习vue.js中....

入门测试示例是一个简单的使用vue.js库

 

该系列所有代码都是参照B上彬果锅的 vue.js 从入门到应用 的视频,可以去围观他

 

新代码都放到GitHub上了,

https://github.com/wangqinghe95/Vue.js.git

 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="lib/vue-2.5.9.js"></script>
</head>
<body>

    <div id = "app">
        <p> {{msg ? 'this is ok' : 'this is no'}} </p>
        <hr>
        <h3 v-text="msg"></h3>
    </div>
    
    <script>
        const vm = new Vue({
            el:'#app',
            data:{
                msg:"this is a data used by vue drawing, we does not to operate DOM's element",
                msg2:false
            }
        })
    </script>
</body>
</html>

 

posted @ 2020-11-20 17:50  王清河  阅读(92)  评论(0编辑  收藏  举报