vue

一、中国官网

https://cn.vuejs.org/

vue的简单实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="d1">
        {{name}}
    </div>
    <script src="./js/vue.js"></script>
    <script>
    var foo = new Vue({
        el: '#d1',
        data: {
            name: 'tom',
        },
    })

    </script>
</body>
</html>

 

posted @ 2019-09-07 23:32  市丸银  阅读(149)  评论(0编辑  收藏  举报