<script type="text/javascript" src="https://cdn.jsdelivr.net/vue/2.1.3/vue.js"></script>
<button @click="show=!show">aaaa</button>
template: '<div>这是组件 111 </div>',
beforeCreate: function () {
console.group('beforeCreate 111创建前状态===============》');
console.log("%c%s", "color:red", "el 111 : " + this.$el);
console.log("%c%s", "color:red", "data 111 : " + this.$data);
console.log("%c%s", "color:red", "message 111: " + this.message);
console.group('created 111创建完毕状态===============》');
console.log("%c%s", "color:red", "el 111 : " + this.$el);
console.log("%c%s", "color:red", "data 111 : " + this.$data);
console.log("%c%s", "color:red", "message 111 : " + this.message);
beforeMount: function () {
console.group('beforeMount 111挂载前状态===============》');
console.log("%c%s", "color:red", "el 111 : " + (this.$el));
console.log("%c%s", "color:red", "data 111 : " + this.$data);
console.log("%c%s", "color:red", "message 111 : " + this.message);
console.group('mounted 111挂载结束状态===============》');
console.log("%c%s", "color:red", "el 111 : " + this.$el);
console.log("%c%s", "color:red", "data 111 : " + this.$data);
console.log("%c%s", "color:red", "message 111 : " + this.message);
beforeUpdate: function () {
console.group('beforeUpdate 111更新前状态===============》');
console.log("%c%s", "color:red", "el 111 : " + this.$el);
console.log("%c%s", "color:red", "data 111 : " + this.$data);
console.log("%c%s", "color:red", "message 111: " + this.message);
console.group('updated 111更新完成状态===============》');
console.log("%c%s", "color:red", "el 111 : " + this.$el);
console.log("%c%s", "color:red", "data 111 : " + this.$data);
console.log("%c%s", "color:red", "message 111 : " + this.message);
beforeDestroy: function () {
console.group('beforeDestroy 111销毁前状态===============》');
console.log("%c%s", "color:red", "el 111 : " + this.$el);
console.log("%c%s", "color:red", "data 111 : " + this.$data);
console.log("%c%s", "color:red", "message 111 : " + this.message);
console.group('destroyed 111销毁完成状态===============》');
console.log("%c%s", "color:red", "el 111 : " + this.$el);
console.log("%c%s", "color:red", "data 111 : " + this.$data);
console.log("%c%s", "color:red", "message 111 : " + this.message);
template: '<div>这是组件 222</div>',
beforeCreate: function () {
console.group('beforeCreate 222创建前状态===============》');
console.log("%c%s", "color:red", "el 222 : " + this.$el);
console.log("%c%s", "color:red", "data 222 : " + this.$data);
console.log("%c%s", "color:red", "message222: " + this.message);
console.group('created 222创建完毕状态===============》');
console.log("%c%s", "color:red", "el 222 : " + this.$el);
console.log("%c%s", "color:red", "data 222 : " + this.$data);
console.log("%c%s", "color:red", "message222: " + this.message);
beforeMount: function () {
console.group('beforeMount 222挂载前状态===============》');
console.log("%c%s", "color:red", "el 222 : " + (this.$el));
console.log("%c%s", "color:red", "data 222 : " + this.$data);
console.log("%c%s", "color:red", "message222: " + this.message);
console.group('mounted 222挂载结束状态===============》');
console.log("%c%s", "color:red", "el 222 : " + this.$el);
console.log("%c%s", "color:red", "data 222 : " + this.$data);
console.log("%c%s", "color:red", "message222: " + this.message);
beforeUpdate: function () {
console.group('beforeUpdate 222更新前状态===============》');
console.log("%c%s", "color:red", "el 222 : " + this.$el);
console.log("%c%s", "color:red", "data 222 : " + this.$data);
console.log("%c%s", "color:red", "message222: " + this.message);
console.group('updated 222更新完成状态===============》');
console.log("%c%s", "color:red", "el 222 : " + this.$el);
console.log("%c%s", "color:red", "data 222 : " + this.$data);
console.log("%c%s", "color:red", "message222: " + this.message);
beforeDestroy: function () {
console.group('beforeDestroy 222销毁前状态===============》');
console.log("%c%s", "color:red", "el 222 : " + this.$el);
console.log("%c%s", "color:red", "data 222 : " + this.$data);
console.log("%c%s", "color:red", "message222: " + this.message);
console.group('destroyed 222销毁完成状态===============》');
console.log("%c%s", "color:red", "el 222 : " + this.$el);
console.log("%c%s", "color:red", "data 222 : " + this.$data);
console.log("%c%s", "color:red", "message222: " + this.message);
beforeCreate: function () {
console.group('beforeCreate 000创建前状态===============》');
console.log("%c%s", "color:red", "el 000 : " + this.$el);
console.log("%c%s", "color:red", "data 000 : " + this.$data);
console.log("%c%s", "color:red", "message000: " + this.message);
console.group('created 000创建完毕状态===============》');
console.log("%c%s", "color:red", "el 000 : " + this.$el);
console.log("%c%s", "color:red", "data 000 : " + this.$data);
console.log("%c%s", "color:red", "message000: " + this.message);
beforeMount: function () {
console.group('beforeMount 000挂载前状态===============》');
console.log("%c%s", "color:red", "el 000 : " + (this.$el));
console.log("%c%s", "color:red", "data 000 : " + this.$data);
console.log("%c%s", "color:red", "message000: " + this.message);
console.group('mounted 000挂载结束状态===============》');
console.log("%c%s", "color:red", "el 000 : " + this.$el);
console.log("%c%s", "color:red", "data 000 : " + this.$data);
console.log("%c%s", "color:red", "message000: " + this.message);
beforeUpdate: function () {
console.group('beforeUpdate 000更新前状态===============》');
console.log("%c%s", "color:red", "el 000 : " + this.$el);
console.log("%c%s", "color:red", "data 000 : " + this.$data);
console.log("%c%s", "color:red", "message000: " + this.message);
console.group('updated 000更新完成状态===============》');
console.log("%c%s", "color:red", "el 000 : " + this.$el);
console.log("%c%s", "color:red", "data 000 : " + this.$data);
console.log("%c%s", "color:red", "message000: " + this.message);
beforeDestroy: function () {
console.group('beforeDestroy 000销毁前状态===============》');
console.log("%c%s", "color:red", "el 000 : " + this.$el);
console.log("%c%s", "color:red", "data 000 : " + this.$data);
console.log("%c%s", "color:red", "message000: " + this.message);
console.group('destroyed 000销毁完成状态===============》');
console.log("%c%s", "color:red", "el 000 : " + this.$el);
console.log("%c%s", "color:red", "data 000 : " + this.$data);
console.log("%c%s", "color:red", "message000: " + this.message);