摘要:
function selRandom(){ var objSelectd; var countOption; var indexSel; objSelectd = document.getElementById("id"); countOption = objSelectd.length; indexSel = Math.floor(Math.random()*countOption+1); objSelectd.value = objSelectd.options[indexSel].value;} 阅读全文