¼òµ¥µÄhtml JavaScript ÎÊÌâ - Web ¿ª·¢ / JavaScript
HTML code:
<html>
<script language="javascript" type="text/javascript">
function fun()
{
alert(document.input.Sex.value);
}
</script>
<body>
<form name="input" method="get">
Male:
<input type="radio" name="Sex" value="1" checked="checked">
<br>
Female:
<input type="radio" name="Sex" value="2">
<br>
<input type ="submit" value ="Submit" onclick="return fun()">
</form>
</body>
</html>
Ϊʲôµ±ÎÒ°´ÏÂsubmitʱ£¬alert³öµÄÌáʾ¿ò²»ÏÔʾ 1»ò2 £¬¶øÊÇÏÔʾundefined, ¹Ø¼üÊÇÎÒÈçºÎ½â¾öÕâ¸öÎÊÌâÔõÑùÄÜ°´male»ñµÃ1£¬°´female »ñµÃ2
HTML code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<script language="javascript" type="text/javascript">
function fun()
{
var radio=document.getElementsByName("Sex");
for(var i=0;i<radio.length;i++){
if(radio[i].checked){
alert(radio[i].value);
}
}
}
</script>
<body>
<form name="input" method="get">
Male:
<in
Ïà¹ØÎÊ´ð£º
ÎÒÓõÄÊÇÁ¬½Ó³Ø×öµÄ£¬ÅäÁ¬½Ó³ØµÄ·½·¨Ó¦¸ÃûÓÐ´í£¬ÎªÊ²¾ÍÊdzöÏÖÕâÖÖÎÊÌâ
javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/test
ÇëÎÊ´óÏÀÃÇÕâÊÇÔ ......
<span id="Label1">Èç¹ûÄÜ¿´µ½Õâ¸ö±êÇ© ˵Ã÷ÎÒÃÇÒѾÄÜ´ÓHTML Ò³ÃæÉÏ»ñÈ¡ÁËÕâ¸öÔªËؿؼþ´«µÝµ½SilverlightÓ¦ÓóÌÐòÖÐ </span>
<br />
<input type="sub ......
ÎÒ´Óºǫ́»ñÈ¡ÁËϱßÒ»¶Îhtml´úÂ뵫ÎÒÏÖÔÚÏë°É<span></span>ÀïµÄÄÚÈݹýÂËÈ¥µôËÄܸø¸öºÃµÄ£¬¼òµ¥µÄ·½·¨
¶àл¸÷λÁË¡¡
<html>
<body>
<div>
<sp ......
ÓÃcssËõд ʹÓÃËõд¿ÉÒÔ°ïÖú¼õÉÙÄãCSSÎļþµÄ´óС£¬¸ü¼ÓÈÝÒ×ÔĶÁ¡£cssËõдµÄÖ÷Òª¹æÔòÇë²Î¿´¡¶³£ÓÃcssËõдÓï·¨×ܽᡷ£¬ÕâÀï¾Í²»Õ¹¿ªÃèÊö¡£
¶þ.Ã÷È·¶¨Ò嵥룬³ý·ÇֵΪ0
Íü¼Ç¶¨Òå³ß´çµÄµ¥Î»ÊÇCSSÐÂÊÖÆÕ±éµÄ´íÎó¡£ÔÚHT ......