select框插入option原生JS
程序员文章站
2022-03-02 09:38:48
...
var select = document.getElementById('select');
var node = document.createElement("OPTION");
node.text = a[i];
select.appendChild(node);