摘要: A long-awaited feature is smart incremental builds for TypeScript projects. In 3.0 you can use the --build flag with tsc. This is effectively a new en 阅读全文
posted @ 2024-09-03 21:28 Zhentiw 阅读(10) 评论(0) 推荐(0) 编辑
摘要: function timeout(time) { return new Promise((resolve) => { setTimeout(resolve, time); }); } class ParalleTask { constructor(paralleCount = 2) { this.t 阅读全文
posted @ 2024-09-03 21:12 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
摘要: @use 'sass:math'; .menu-item { opacity: 0; transition: 0.5s; } $r: 120px; $n: 6; $step: 360deg / $n; for $i from 1 through $n { .board:hover .menu-ite 阅读全文
posted @ 2024-09-03 20:45 Zhentiw 阅读(16) 评论(0) 推荐(0) 编辑
摘要: export const randomColor = () => { return "#" + Math.random().toString(16).substring(2, 8).padEnd(6, '0') } export const randomString = (len: number) 阅读全文
posted @ 2024-09-03 20:35 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑