var select = document.getElementById('select');
var node = document.createElement("OPTION");
node.text = a[i];
select.appendChild(node);
select框插入option原生JS
最新推荐文章于 2024-10-22 18:46:48 发布
var select = document.getElementById('select');
var node = document.createElement("OPTION");
node.text = a[i];
select.appendChild(node);