html之select赋值操作

xiaoxiao2021-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)