我偶然发现this line of TS code:
const { title = item.text } = item;
似乎是destructuring assigment,但是大括号内的分配有什么用?
内部分配提供一个default value:
如果未定义item.title,将改为分配title。
item.title
title