var obj= { a: 1 } var vm = new Vue({ data: obj }) obj.a = 2; console.log(vm.a) //2
vue的使用的小问题
原文:https://www.cnblogs.com/wenxuehai/p/10440814.html