strlist 相关的软件列表

首页

js 获取Listbox选择的值的代码

2020-02-16 标签:js,获取,listbox,选择,值的,代码,实现,如下,script,type,text,javascript,function,getvalue,var,strlist,document,str

实现代码如下: function GetValue() { var strlist = document.getElementById("ListBox1");//获取Listbox var str= ""; //遍历Listbox,取得选中项的值 if (strlist.options.lengt