例如图中的:currentRow?.name
可选链操作符
currentRow里有name吗?有:id: currentRow.name无:id: undefined
哈哈还有这样写的。等同于这个。就是 currentRow不为 null 或者undefined 时 id为 它的name属性 。id: currentRow&¤tRow.name