vue 中html不能写入的内容
basic.other_photo是一个数组
<h4 v-if="basic.other_photo.length != 0">附加资料</h4>
结果报错

改成这种就不报错
<h4 v-if="basic.other_photo !== undefined && basic.other_photo.length > 0">附加资料</h4>
basic.other_photo是一个数组
<h4 v-if="basic.other_photo.length != 0">附加资料</h4>
结果报错

改成这种就不报错
<h4 v-if="basic.other_photo !== undefined && basic.other_photo.length > 0">附加资料</h4>