首页
Java
登录
6mi
u
盘
搜
搜 索
Java
html之select赋值操作
html之select赋值操作
xiaoxiao
2021-02-27
370
var ruleBoxOptions = ["SUCCESS", "FINISH"]; var idSelect = document.createElement("select"); idSelect.setAttribute("class", "form-control"); for (var i in indexToName) { idSelect.options[i] = new Option(indexToText[i], indexToName[i]); }
转载请注明原文地址: https://www.6miu.com/read-6165.html
技术
最新回复
(
0
)