¹ØÓÚjavascriptµÄÖØÔØ - Web ¿ª·¢ / JavaScript
ÇëÎÊÕâÑùµÄ»°×ÓÀ಻ÊǸù¾Ý²ÎÊýÁбíµÄ²»Í¬ÖØÔØÁËa·½·¨Â𣿣¿
µ«ÊÇΪʲôÊä³öÊÇChild Method count undefined ÄØ£¿£¿
²»ÊÇÓ¦¸Ã¸ù¾Ý²ÎÊýÁбíµÄ²»Í¬µ÷ÓÃÁË´Ó¸¸Àà¼Ì³ÐµÄa·½·¨£¬Êä³öParent Method countÂ𣿣¿
ÇëÖ¸½Ì£¡~~
function Parent() {
this.a=function(){
alert("Parent Method count");
}}
Children.prototype = new Parent();
function Children() {
this.a = function(cc) {
alert("Child Method count" + cc);
}
}
var c = new Children();
c.a();
JavaScriptÏÂûÓÐÖØÔØ£¬ÕâÑùдÊǰÑParentµÄº¯Êý¸²¸ÇÁË¡£
ÒªÖØÔØÐèÒª×ÔÒÑ×öЩ´¦Àí```
ÒòΪÄãдµÄ×ÓÀàa()·½·¨¸²¸Ç¸¸ÀàµÄa()·½·¨£¬
ֻҪעÊ͵ô×ÓÀàa()·½·¨¾Í¿ÉÒÔÁË¡£
this.a=function(){
alert("Parent Method count");
}}
Children.prototype = new Parent();
function Children() {
/*
this.a = function(cc) {
alert("Child Method count" + cc);
}
*/
}
var c = new Children();
c.a();
function Parent() {
this.a=function(){
alert("Parent Method");
}}
Children.prototype = new Parent();
function Children() {
this.b = funct
Ïà¹ØÎÊ´ð£º
ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......
ÓÃjavascript½«Êý¾Ýµ¼³öµ½Îı¾Îļþ(txt)ÖÐ..
Ê×ÏȼÙÉèÒѾÓÐÁËÐèҪдÈëµÄÎı¾ÄÚÈÝ var txtContent ="ÐèҪдÈëµÄÄÚÈÝ";
ÏÖÔÚÐèÒªÓÃjavascript½«ÄÚÈÝдÈëtxtÎļþ(Õâ¸ötxtÎļþ²»´æÔÚ,ÐèÒª´´½¨)ÖÐ,È»ºóдºÃÖ ......
ÒÔÏÂÊÇÒ»¶ÎJavsScript½Å±¾£¬µ«ÔËÐÐʱ×Ü»á²úÉú ¡°Microsoft JScript ÔËÐÐʱ´íÎó: 'null' Ϊ¿Õ»ò²»ÊǶÔÏó¡±Òì³££¬´ó¼Ò°ï¿´Ò»Ï¡£
<form id="form1" runat="server">
< ......
ÎÒÏëÎÊÒ»ÏÂÈçºÎÔÚ»ðºüÖйرգ¬·Ç½Å±¾´ò¿ªµÄÒ³Ãæ£¬ºÃÏñwindow.close()²»¹ÜÓÃO(¡É_¡É)O~£¬
°Ù¶Èһϣ¬×Ô¼ºÊÔÊÔ
<script language="javascript" type="text/javascript">
& ......
ÕâÀïÊÇһȺÈȰ®¡¢²¢ÇÒÔ¸Òâ·ÖÏí֪ʶ¡¢°®ºÃ½»Á÷JavascriptµÄÈË¡£Èç¹ûÄúÕýÔÚѧϰʵ¼ù£¬²¢ÇÒÔ¸·ÖÏíÄãµÄѧϰÐĵúÍѧϰ³É¹û¸ø±ðÈË£¬¿ÉÒÔÉêÇë¼ÓÈëÎÒÃǵÄȺ£º100172168¡£ÄÜÔÙ½øÒ»²¿·ÖÈË
ÒýÓÃ
ÕâÀïÊÇһȺÈȰ®¡¢²¢ÇÒÔ¸Òâ· ......