javascript Ö® prototype
function MyObject1(formalParameter){
alert("MyObject1");
this.testNumber = formalParameter;
//1
this.toString= function(){
alert("MyObject1:"+this.testNumber);
};
}
function MyObject2(formalParameter){
alert("MyObject2");
this.testString = formalParameter;
//2
this.toString= function(){
alert("MyObject2:"+this.testString);
};
}
MyObject2.prototype = new MyObject1( 8 );
var objectRef = new MyObject2( "String_Value" );
alert(objectRef);
½á¹ûΪ
MyObject1
MyObject2
String_Value
undefined(Ϊʲô»á³öÏÖ£¿)
×¢ÊÍ2ÒÔϽá¹ûΪ8
×¢ÊÍ1ºÍ2ÒÔϽá¹ûΪ[object Object]
alert(MyObject2); µ÷ÓÃÁËFunction.prototype.toString
var ....=(function() {return .....})(); Èç¹ûûÓÐreturn£¬()()¾ÍûÓбØÒª
£¨£©£¨£©·µ»ØÖ´ÐеĽá¹û
²Î¿¼ÎÄÕ http://www.cn-cuckoo.com/wordpress/wp-content/uploads/2007/08/JavaScriptClosures.html
Ïà¹ØÎĵµ£º
write by ¾ÅÌìÑãôá(JTianLing) -- blog.csdn.net/vagrxie
ÌÖÂÛÐÂÎÅ×é¼°Îļþ
ÔÎÄÀ´×Ô£º¡¶JavaScript for C & Python programmers
¡·£¬¾¹ý×÷ÕßCanisÔÊÐíºó·Ò룬¼´Ê¹×ªÔØÇ븽´ø´ËÁ´½Ó¡£
Ç°ÑÔ£ººÜÉٸɷÒëµÄÊÂÇ飬ÀÛ£¬ÐÁ¿à£¬²»ÄÜ·¢»Ó£¬µäÐ͵ķÑÁ¦²»Ìֺã¬×î½üÎÞÁÄ£¬ÏëÔÚÍøÒ³ÉÏÏÔʾ¶¯»£¨ÒòΪCSDNÌ ......
³£ÓõÄJavaScriptÑéÖ¤ÕýÔò±í´ïʽ
ÏÂÃ涼ÊÇÎÒÊÕ¼¯µÄһЩ±È½Ï³£ÓõÄÕýÔò±í´ïʽ£¬ÒòΪƽ³£¿ÉÄÜÔÚ±íµ¥ÑéÖ¤µÄʱºò£¬Óõ½µÄ±È½Ï¶à¡£ÌØ·¢³öÀ´£¬Èø÷λÅóÓѹ²Í¬Ê¹Ó᣺Ǻǡ£
Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ£º [u4e00-u9fa5]
ÆÀ×¢£ºÆ¥ÅäÖÐÎÄ»¹ÕæÊǸöÍ·ÌÛµÄÊ£¬ÓÐÁËÕâ¸ö±í´ïʽ¾ÍºÃ°ìÁË
Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)£º[^x00-xff]
ÆÀ×¢ ......
¡¾×ª¡¿http://www.cnblogs.com/chenxizhang/archive/2010/01/01/1637309.html
Èç¹ûÎÒÃÇÐèÒªÔÚjavascript·ÃÎʵ½Ò³ÃæÖж¨ÒåµÄ±äÁ¿£¬´óÖÂÊÇÈçϵÄÓï·¨
//ÕâÊÇ2010Äê1ÔÂ1ÈÕÔö¼ÓµÄ´úÂë
var ismanager = "<%= DepartManager %>";
if (ismanager == "true") {
$(" ......
¡¾×ª¡¿http://www.cnblogs.com/chenxizhang/archive/2009/07/12/1522058.html
ÔÚʹÓÃVisual Studio×ö¿ª·¢µÄʱºò£¬ÖÇÄܸÐÖªÊǷdz£·½±ãµÄ¡£´ÓVS2008¿ªÊ¼£¬ÌṩÁ˶ÔjavascriptµÄÖÇÄܸÐÖªÖ§³Ö¡£ÀýÈç
ÉÏÊö´úÂëÖУ¬ÎÒÃÇÏÈÓÃdocument¶ÔÏóµÄgetElementByIdµÄ·½Ê½È¡µÃÁËÎĵµÖеÄÒ»¸öIdΪform1µÄÔªËØ£¬Êµ¼ÊÉϾÍÊÇĬÈϵÄÄǸö´°ÌåÔ ......
FRAMESET ±êÇ©ÊÇ FRAME ÔªËصÄÈÝÆ÷¡£
HTML Îĵµ¿É°üº¬ FRAMESET ÔªËØ»ò BODY ÔªËØÖ®Ò»£¬Á½Õß²»ÄÜͬʱʹÓá£
¿ò¼Ü½«ÍøÒ³·Ö³É¼¸¸ö¿ò´°£¬Í¬Ê±È¡µÃ¶à¸öURL¡£ÓÃ<FRAMESET> <FRAME> ¼´¿É£¬ËùÓпò¼Ü±ê¼ÇÐèÒª·ÅÔÚÒ»¸ö×ÜÆðµÄ html ÎĵµÀÕâ¸öµµ°¸Ö»¼Ç¼Á˸ÿò¼ÜÈçºÎ·Ö¸î £¬²»»áÏÔʾÈκÎ×ÊÁÏ£¬ËùÒÔ²»±Ø·ÅÈë <BODY& ......