HTMLDataListElement:options 属性
基线
广泛可用
自 2019年3月 起,此特性已在主流浏览器中得到支持,可在大多数设备和浏览器版本中正常使用。
Want more support for this feature? Tell us why.
HTMLDataListElement 接口的 options 只读属性返回一个包含在 <datalist> 元素内的所有 HTMLOptionElement 元素的 HTMLCollection。这些后代 <option> 元素为与 <datalist> 关联的 <input> 控件提供预定义选项。