为什么fullName不能直接在data中写成firstName + lastName
new Vue(
{
el: '#root',
data: {
firstName: '',
lastName: '',
fullName: this.firstName + this.lastName // 为什么不能直接让fullName等于firstName和lastName相加
}
}
)