更新时间:2023-11-18 13:28:04
正如你所读此处,不推荐使用Window.showModalDialog(),Chrome不支持从版本37开始已经完全从版本43中删除。
As you can read here, Window.showModalDialog() is deprecated and Chrome doesn't support it anymore from version 37 and has been completely removed from version 43.
使用 Bootstrap Modal 或者,如果太昂贵而无法更改,请尝试库,这是一个window.showModalDialog polyfill
Use Bootstrap Modal instead or, if too expensive to change, try this library, that is a window.showModalDialog polyfill