对话框与 popover

dialog

保存修改?

保存后旧版本会被覆盖。

dialog.showModal();  // 模态
dialog.close();      // 关闭

popover

点击按钮打开,点击外部或 Esc 关闭。