showInfoBtn(){return(this.personAuth==='specialist'||this.personAuth==='dispatcher'||this.personAuth==='doctor')},这个语句显示有语法错误应该怎么修改?
2 回答

宝慕林4294392
TA贡献2021条经验 获得超8个赞
showInfoBtn(){return(this.personAuth==='specialist'||this.personAuth==='dispatcher'||this.personAuth==='doctor')},改成这样即可

慕森卡
TA贡献1806条经验 获得超8个赞
不截图,看不出来语法错误哎。这种判断不嫌麻烦吗?return['speciallist','dispatcher','doctor'].includes(this.personAuth)
添加回答
举报
0/150
提交
取消