关键字输入选项类
用于配置 getKeyword 函数的行为,让用户从预定义选项中选择。
const options = new KeywordInputOptions("选择对齐方式[左(L)/中(C)/右(R)]:");options.keywords = ["L", "C", "R"];options.defaultKeyword = "C";const result = await getKeyword(options); Copy
const options = new KeywordInputOptions("选择对齐方式[左(L)/中(C)/右(R)]:");options.keywords = ["L", "C", "R"];options.defaultKeyword = "C";const result = await getKeyword(options);
提示消息
可选的关键字列表
默认关键字
关键字输入选项类
用于配置 getKeyword 函数的行为,让用户从预定义选项中选择。
Example