¹ØÓÚ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
Ïà¹ØÎÊ´ð£º
ÓÃjavascript½«Êý¾Ýµ¼³öµ½Îı¾Îļþ(txt)ÖÐ..
Ê×ÏȼÙÉèÒѾÓÐÁËÐèҪдÈëµÄÎı¾ÄÚÈÝ var txtContent ="ÐèҪдÈëµÄÄÚÈÝ";
ÏÖÔÚÐèÒªÓÃjavascript½«ÄÚÈÝдÈëtxtÎļþ(Õâ¸ötxtÎļþ²»´æÔÚ,ÐèÒª´´½¨)ÖÐ,È»ºóдºÃÖ ......
×î½ü ʹÓà js, ¾³£²»ÄÜÉÏÍø, Ï£ÍûÄÄλ´ïÈË ÄÜÌṩһ¸ö
±È½ÏÍêÕûµÄ jsÀëÏßÎĵµ,ÐÂÒ»µã¶ù,ÍêÕûµã¶ùµÄ±È½ÏºÃ,±ÈÈçÉæ¼° dom ÕâЩ
ÇëÖ¸µãÒ»¶þ.
Íò·Ö¸Ðл°¡.
http://download.csdn.net/source/566130
......
ÔÚJSPÒ³ÃæÓÐÒ»¸ö<input type="hidden" name="index" value="0">/>¿Ø¼þ
µ±ÎÒÓÃÏÂÃæµÄJavaScriptº¯Êý¸Ä±äÆävalueµÄÖµµÄʱºò Èç¹ûÂú×ãÌõ¼þ£¨¼´i>=3µÄʱºò£©ÎªÊ²Ã´valueµÄ ......