electron错误对话框的使用

electron要使用消息对话框,需要先引入dialog模块

dialog.showErrorBox(title, content)

title:显示在错误框中的标题

content:显示在错误框中的文本内容
例子如下:

dialog.showErrorBox('错误','这是一条错误消息');

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: