Home > SYS_Dialog > showInformationMessage
SYS_Dialog.showInformationMessage() method
弹出消息窗口
签名
typescript
function showInformationMessage(content: string, title?: string, buttonTitle?: string): void;1
参数名
参数 | 类型 | 描述 |
|---|---|---|
content | string | 消息文本,支持使用 |
title | string | (可选) 弹出窗口标题 |
buttonTitle | string | (可选) 按钮标题,为空则不显示按钮 |
返回值
void
备注
显示一个文字消息窗口
示例
javascript
// 1. 弹出消息窗口(content 用 \n 换行展示两行内容)
eda.sys_Dialog.showInformationMessage('DRC 检查完成\n 共检查 128 个图元,未发现违规', '检查结果', '知道了');
// 2. 窗口立即弹出;本方法无返回值,也不阻塞后续代码
console.log('已弹出消息窗口');1
2
3
4
5
2
3
4
5