Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望弹出对话框,自动突出显示“是”而不是“否”,以防人们不阅读并单击。谢谢!
Dialog.ask()有几个可用的重载版本,它们有一个defaultChoice参数,例如:
Dialog.ask()
defaultChoice
Dialog.ask(Dialog.D_YES_NO, "Continue?", Dialog.YES);