<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<div id="app">
{{a}}---{{b}}
</div>
<script>
var data = { 'a': 1 };
var vm = new Vue({
el: '#app',
data: data
})
vm.a = 2;
vm.b = 3;
</script>
效果如下,虽然报错,但居然能出结果
当注释掉23行效果如下
b出不来了???