改变

就是JavaScript基础语法中的更新变量

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue中的data数据的改变和设置方式1</title>
    <script src="https://static.gzj2001.com/vue/vue.js"></script>
</head>
<body>
    <div id="myapp">
        {{url}}
    </div>

    <script>
        let myapp = new Vue({
            el:'#myapp',
            data:{
                site:"城南博客",
                url:"www.gzj2001.com"
            },
        })

        //更新数据
        myapp.url="www.cnhk.pro";
    </script>
</body>
</html>