one-timer
ISC思考如下问题: 当我们需要延迟执行代码,这种情况一多,我们就需要同时创建很多个定时器。当我们的页面同时持有很多定时器的时候,这会耗费很多不必要的计算机资源。 ```javascript setTimeout(() => {}, 100) setTimeout(() => {}, 200) setTimeout(() => {}, 300) setTimeout(() => {}, 400) setTimeout(() => {}, 500) ... ```
64
Security score
0 known advisories in v1.1.8
OpenSSF Scorecard 1.5/10
Weekly downloads
17
Unpacked size
114.1 kB
Dependencies
2
Last publish
7 years ago
Security advisories
No known vulnerabilities affect v1.1.8.
Downloads — last 30 days
46 total▲ 240.0% vs prior week
Jul 11Aug 9
OpenSSF ScorecardAug 3, 2026
- Code-Review0
- Binary-Artifacts10
- Maintained0
- SAST0
- CII-Best-Practices0
- Security-Policy0
- Fuzzing0
- License0
- Branch-Protection0