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.
我目前正在使用 JSP 为我的 mozilla 插件开发一个简单的 GUI。在那个 Gui 中,我想创建一个带有两个带有下拉列表选项的输入字段的提示框。是否可以使用 javascript 提示框选项?
使用默认功能是不可能的,window.prompt();但您可以滚动自己的叠加层或使用jQuery UI 对话框之类的东西。
window.prompt();
使用纯 JS 提示框无法做到这一点,但您可以使用jQuery UI或Bootstrap之类的库。