📜  使用变量填充下拉列表 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:02.553000             🧑  作者: Mango

代码示例1
/* HTML:

*/

// Javascript:
var x = "Jenny,John,Stephanie,Marc,Ryan,Jessica";

var options = x.split(",");

var select = document.getElementById('myoptions');
for(var i=0; i