ѧÁ˺ü¸ÌìµÄJavaScriptÓöµ½Õâô¸öÎÊÌ⣬Çó´ïÈ˽â
HTML code:
<html>
<head>
<script language="javascript" type="text/javascript">
alert(document.getElementById("member").options.length)
</script>
</head>
<body>
<select id="member">
<option value="1"></option>
</select>
</body>
</html>
´úÂ뱨´íalertÄÇÒ»¾äȱÉÙ¶ÔÏóÊÇΪʲô°¡£¿
<script language="javascript" type="text/javascript">
alert(document.getElementById("member").options.length)
//ÔÚ½âÎöÉÏÃæÕâÐдúÂëʱmemberµÄÔªËØ»¹ÓмÓÔØ½øÀ´
</script>
<html>
<head>
<script type="text/javascript">
function test()
{
alert(document.getElementById("member").length);
}
</script>
</head>
<body>
<select id="member">
<option>123 </option>
</select>
<input type="submit" onclick="test()" value="show" />
</body>
</html>
ÊÔÊÔ
window.onload = function(){alert(document.getElementById("member").options.length);}
ѧϰÁ
Ïà¹ØÎÊ´ð£º
ÎÒÒ²À´Ò»¸öȤζjavascript:
´ò¿ªÒÔÏÂhtmlÎļþ,ÒÀ´Î°´ÏÂG,L,CÈý¸ö¼ü,¾Í»áÓÐÆæ¼£³öÏÖ!!
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" ......
ÓÐÒ»¸öjsÎļþ£¬ÊÇʵÏÖÎÄ×Ö¹ö¶¯µÄ£¬ÆäÖеıäÁ¿ÐèÒªµ½mysqlÊý¾Ý¿âÖжÁÈ¡£¬ÄÇôÔõÑùʵÏÖÊý¾Ý¿âÁ¬½Ó¶ø¶ÁÈ¡Êý¾Ý£¿
ÎÒÊDzËÄñ£¬×îºÃÓÐÍêÕûµÄ´úÂëºÍ½âÊÍ£¬Ð»Ð»¸÷λ´óϺ°¡°¡°¡°¡°¡°¡£¡£¡£¡
http://blog.csdn.net/jemlee2002 ......
JScript code:
function C1(){}
function C2(){}
C2.prototype=new C1();
function C3(){}
C3.prototype=new C2();
var obj=new C3();
function C4(){}
C3.prototype=new C4();
alert(obj insta ......