return ({
Y: year,
m: month,
d: day,
H: hour,
i: minite,
s: second
})[matches];
如果写成一行
return {Y: year,m: month,d: day,H: hour,i: minite,s: second}[matches];
没有明白最后[matches]的语法
缥缈止盈
相关分类