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