可以使用TS 中的 type (用 enum 也行) 來實現: type FilterPeriod = 'today' | 'this week' const filters: FilterPeriod[] = ['today' ...
確定! 回上一頁