{ {message}}
点击
import {
mapState,
mapMutations
} from 'vuex';
var key = 0;
export default {
data() {
return {
message: 1
}
},
computed: {
},
methods: {
addMsg() {
this.message++
}
},
beforeCreate() {
console.group('beforeCreate 组件创建之前状态===============》');
console.log("%c%s", "color:red" , "el : " + this.$el);
console.log("%c%s", "color:red","data : " + this.$data);
console.log("%c%s", "color:red","message: " + this.message)
},
onLoad() {
console.group('onLoad 状态===============》');
console.log("%c%s", "color:red" , "el : " + this.$el);
console.log("%c%s", "color:red","data : " + this.$data);
console.log("%c%s", "color:red","message: " + this.message)