You can do something like this
(你可以做这样的事情)
var v1, v2;
v1 = new Vue({
// ...
methods: [
changeSomething: function(){
v2.attribute = 'new value';
}
];
});
v2 = new Vue({/*..*/});
v1.changeSomething();
Hope this helps.
(希望这可以帮助。)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…