¹ØÓÚ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
Ïà¹ØÎÊ´ð£º
×î½ü ʹÓà js, ¾³£²»ÄÜÉÏÍø, Ï£ÍûÄÄλ´ïÈË ÄÜÌṩһ¸ö
±È½ÏÍêÕûµÄ jsÀëÏßÎĵµ,ÐÂÒ»µã¶ù,ÍêÕûµã¶ùµÄ±È½ÏºÃ,±ÈÈçÉæ¼° dom ÕâЩ
ÇëÖ¸µãÒ»¶þ.
Íò·Ö¸Ðл°¡.
http://download.csdn.net/source/566130
......
Çë½Ì¸÷λ´óÏÀ¡£
ÎÒÓÐÒ»Ò³Ãæa1.asp ÐèÒª´òÓ¡¡£ºáÏò£¬ÉÏ30£¬×ó5£¬ÓÒ5£¬ÏÂ5£¬Ò³Ã¼¡¢Ò³½ÅΪ¿Õ¡£
µ±Óû§µ½´ïa1.aspÒ³Ãæ¾Í×Ô¶¯ÉèÖÃÉÏÊöÃèÊö¡£À뿪a1.asp¾Í»Ö¸´Ä¬ÈÏÉèÖá£
Çë½Ì´óÏÀÃÇÈçºÎ±àÂ롣лл
û¿´Ã÷°×£¬ËµµÃ¸üÃ÷ ......
Îʸö±È½Ï»ù´¡µÄÎÊÌ⣬ÔÚÒ»¸öhtmlÎļþÖÐÒýÈëÁËÒ»¸ö.jsµÄÎļþ£¬ÄÇô¶ÔÓÚÕâ¸ö .js µÄÎļþÀ´Ëµ£¬ËüËù¶ÔÓ¦µÄµ±Ç°Â·¾¶Ó¦¸ÃÊÇÄÄÒ»¸ö£¿ÊÇhtmlÎļþËùÔڵķ¾¶£¬»¹ÊÇ .js ÎļþµÄ·¾¶£¿£¨htmlÓëjs²»ÔÚͬһÎļþ¼ÐÖУ©
ÓÉÓÚjsÖÐÒ ......
<html>
<head>
<title>look the status change</title>
</head>
<body>
<script type="text/javascript">
var nowtime ;
var year ;
var month ,da ......