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.
有没有办法强制过滤选择只允许用户键入出现在下拉列表中的项目。我知道它会使列表中没有的任何内容无效,但我宁愿它不允许显示无效条目。实际上,我希望看到与 HTML SELECT 控件匹配的行为。Dojo 似乎没有为其提供任何控件。
我不确定我是否读懂了你,但事情是这样的:
如果您键入 FilteringSelect 小部件的下拉列表中的内容,则不会出现验证错误。
如果要匹配 HTML Select 下拉菜单,请使用 dijit.form.Select.
dijit.form.Select
dijit.form.ComboBox