摘要: 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;} 阅读全文
posted @ 2012-02-06 15:26 testerZH 阅读(229) 评论(0) 推荐(0) 编辑