对话框与 popover
dialog
保存修改?
保存后旧版本会被覆盖。
取消
保存
dialog.showModal(); // 模态 dialog.close(); // 关闭
popover
打开菜单
项目一
项目二
点击按钮打开,点击外部或 Esc 关闭。