<span>({{semesterRankList[semesterIndex]?.studentBaseScore ? semesterRankList[semesterIndex].studentBaseScore: 0}})</span>
该写法为判断对象semesterRankList[semesterIndex]格式,如果undefined,此格式确保页面不报错
<span>({{semesterRankList[semesterIndex]?.studentBaseScore ? semesterRankList[semesterIndex].studentBaseScore: 0}})</span>
该写法为判断对象semesterRankList[semesterIndex]格式,如果undefined,此格式确保页面不报错