ThinkSSL🔒 一键申购 5分钟快速签发 30天无理由退款 购买更放心 广告
[TOC] ## 常用工具函数 ``` const { Util } = require('leanpro.common'); ``` 函数 ``` class Util { static delay(milliseconds: number): Promise<void>; static launchProcess(exePath: string, ...args: string[]): ChildProcess; static launchProcess(exePaths: string, args: string[], options: SpawnOptions): ChildProcess; static stopProcess(proc: ChildProcess): boolean; static takeScreenshot(filePath: string = null, monitor: number = 0): string | void; static loadCsvFile(filePath: string): Promise<RowCsv[]>; static saveToCsvFile(rows: RowCsv[], filePath: string): boolean; static getClipboard(): Promise<string>; static setClipboard(text: string): Promise<void>; static copyDir(sourceDir, destDir): Promise<void>; } ```