{{pawnList.length>0 ? pawnList.name : ''}}
报错:Error in render: "TypeError: Cannot read property 'length' of undefined"
解决办法:
{{pawnList!== undefined && pawnList.length>0 ? pawnList.name : ''}}
{{pawnList.length>0 ? pawnList.name : ''}}
报错:Error in render: "TypeError: Cannot read property 'length' of undefined"
解决办法:
{{pawnList!== undefined && pawnList.length>0 ? pawnList.name : ''}}