代码

$美元符

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue中的系统属性的使用</title>
    <script src="https://static.gzj2001.com/vue/vue.js"></script>
</head>
<body>
    <div id="myapp">
        {{site}}+1
    </div>
    <div id="test">123456789</div>
    <script>
        let info ={site:"城南博客",url:"www.gzj2001.com",alexa:611};
        let myapp = new Vue({
            el:'#myapp',
            data:info
        })

        document.write(myapp.$data);
        document.write(info);
    </script>
</body>
</html>