JavaScript确认对话框中的自定义选项 [英] custom choices in javascript confirm dialog
本文介绍了JavaScript确认对话框中的自定义选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
而不是仅仅是确定和取消,我想举个例子:这个那个和其他。
解决方案
简而言之,你不能。
您可能需要考虑使用 jQuery UI对话框, 。
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".
解决方案
In short, you can't.
You might want to consider looking into using something like a jQuery UI dialog instead.
这篇关于JavaScript确认对话框中的自定义选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文