【发布时间】:2018-01-30 11:35:09
【问题描述】:
当我添加时 computed() 而不是 mounted() 它会引发错误
export default {
components: {
MainLayout
},
mounted(){
var x = document.getElementById('homeTabPanes');
// x.style.background = "blue";
console.log("check the value of x", x);
}
}
【问题讨论】: