比如 let startTime: number 然后在循环中判断是否赋值 if (!startTime) { // 报:在赋值前使用了变量"startTime" startTime = xxx } else { xxx }
阅读量:234
点赞量:13