标签:指针 res this指针 外部 检测 alt 强制 变量 没有
var self = this;
$.get({
url: '/api',
success: function(res){
self.list = res.data;
}
})
var self = this;
Vue.set(self.template, 'name', 'Kevin');
var self = this;
self.tempalte.hobby.games.football.color = 'blue';
self.$forceUpdate();
data: {
tempalte: {
hobby: {
games: {
football:{
color: ''
}
}
}
}
},
mounted: {
var self = this;
self.footballColor = self.tempalte.hobby.games.football.color;
},
methods: {
setFootballColor: function(color){
var self = this;
self.footballColor = color;
}
}
标签:指针 res this指针 外部 检测 alt 强制 变量 没有
原文地址:https://www.cnblogs.com/KevinTseng/p/12427486.html