为大部分命令添加输出结构结构化数据

This commit is contained in:
fofolee
2025-01-26 22:55:47 +08:00
parent 73684865ae
commit deade3e1de
33 changed files with 1519 additions and 248 deletions

View File

@@ -235,6 +235,18 @@ interface quickcommandApi {
*/
setTimeout(callback: () => void, ms);
/**
* async 等待
*
* @param ms 等待的毫秒数
* ```js
* quickcommand.asyncSleep(2000).then(() => {
* console.log('2000毫秒后执行')
* })
* ```
*/
asyncSleep(ms: number): Promise<number>;
/**
* 将给定的html字符串解析为 DOM 对象,用于快速编写爬虫脚本
*