


[ appservice 生成错误] pages/historydata/historydata.js: file: pages/historydata/historydata.js
unknown: Unexpected token, expected "," (54:14)
52 |
53 | //返回格式化的时间间隔
> 54 | Function getInterval(time1, time2) {
| ^
55 | //求秒数并打印
56 | var timeIntervalInSeconds = (time2 - time1) / 1000;
57 | console.log(`时间间隔(秒):${timeIntervalInSeconds}`);(env: Windows,mp,1.06.2403182; lib: 3.3.5)