* 生成批注ID * @returns 唯一的批注ID
()
| 23 | * @returns 唯一的批注ID |
| 24 | */ |
| 25 | static generateCommentId(): string { |
| 26 | const timestamp = Date.now(); |
| 27 | const random = Math.random().toString(36).slice(2, 11); |
| 28 | return `comment-${timestamp}-${random}`; |
| 29 | } |
| 30 | |
| 31 | /** |
| 32 | * 生成闪卡ID |
no outgoing calls
no test coverage detected