JavaScript»ñȡѡÖÐÏî
<script type="text/javascript">
function show(){
var ListUtil=new Object();
var ListUtil.getSelectedIndexes=function (oListbox){
var arrIndexes=new Array;
for(var i=0;i <oListbox.length;i++){
if(oListbox.options[i].selected){
arrIndexes.push[i];
}
}
return arrIndexes;
};
var oListbox=document.getElementById("selAge");
var arrIndexes=ListUtil.getSelectedIndexes(oListbox);
alert("There are"+arrIndexes.length+"option selected."+"The options have the indexes"+arrIndexes+".");
}
</script>
</head>
<body onload="show()">
<select name="selAge" id="selAge" size="3" multiple="multiple">
<option value="1" >18-21 </option>
<option value="2" selected="selected">22-25 </option>
<option value="3" selected="selected">26-29 </option>
<option value="4">30-35 </option>
<option value="5">Over 35 </option>
</select>
</body>Õâ¶Î´úÂëÔõô±¨´ímissing:before statementºÍshow
is not defined
Ïà¹ØÎÊ´ð£º
ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......
<script>
with(document)
{
for(var i=0;i <streams.length;i++)
writeln(" <p> <a href=# onclick=change(streams[i].url)>"+streams[i].name+" </a> < ......
ºǫ́ÓÐÒ»¸öº¯Êý protected string Fun1(int a, string b)
ÎÒÏëÔÚjavascript´úÂëÖе÷ÓÃËü£¬Ôõô×ö£¿
function GridBind()
{
var a = 1;
var b='s';
& ......
rt£¬
ÖÐeÎĽԿɣ¬chmµÄ£¬pdfµÄ¾ÍËãÁË£¬ÎÒ×Ô¼ºÏÂÔØµ½ÁË
ûÈËÓУ¿
²»ÖªµÀÄã˵µÄµç×ÓÊéÊÇʲôÑùµÄ£¬³ýÁËchm¡¢pdf
Ī·ÇÊÇÒªÅijöÀ´µÄ¡£¡£¡£¡£=0= ÎÒ¾õµÃÕâÀàÊ黹ÊÇʵÌåÊé¿´µÄÓиоõ... ÈÃÎÒ¿´µç×ÓÊé¾õµÃ¾ ......
Èý¸öÊýx,y,z ±È´óС..
var x,y,z,t;
if (x>y)
{t=x;x=y;y=t;} //½»»»x,yµÄÖµ
if(x>z)
{t=z;z=x;x=t;}//½»»»x,zµÄÖµ
if(y>z)
{t=y;y=z;z=t;}//½»»»z,yµÄÖµ
ÕâÊÇ ......