JavaScript 确认对话框中的自定义选项

2022-01-15 00:00:00 dialog javascript confirm

如何在 JavaScript 中使用自定义选项编写确认对话框?

How to write a confirm dialog in JavaScript with custom choices?

而不仅仅是好的"和取消",我想有例如这个"那个"和其他".

Instead of just "Ok" and "Cancel", I would like to have for example "This" "That" and "Other".

推荐答案

总之,你不能.

您可能需要考虑使用类似 jQuery UI 对话框 之类的工具.

You might want to consider looking into using something like a jQuery UI dialog instead.

相关文章