image.png

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue.js中提供了完全的JavaScript表达式支持</title>
    <script src="https://static.gzj2001.com/vue/vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- js语法 -->
        {{5+5}}
        <br>
        {{ok?"yes":"no"}}
    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                ok:true,
                info:"allen",
                age:20
            }
        })
    </script>
</body>
</html>