JavaScriptѧϰ±Ê¼Ç£¨ËÄ£©
1.³öÓÚ°²È«¿¼ÂÇ£¬JavaScriptÖÐÖ»Óпª·¢Õß×Ô¶¨ÒåµÄÀà¿ÉÒÔ±»¼Ì³Ð¡£
2.ʹÓöÔÏóð³äʵÏּ̳Ð
function ClassA(sColor){
this.color=sColor;
this.showColor=function (){
alert(this.color);
};
}
function ClassB(sColor,sName){
this.newMethod=ClassA; //´Ë´¦½«ÀàClassAµÄ¹¹Ô캯ÊýClassA()¿´×öÒ»¸öÆÕͨº¯Êý½øÐÐÒýÓ㬼´»ñµÃÁ˳¬ÀàµÄ¹¹ÔìÆ÷
this.newMethod(sColor); //´Ë´¦µ÷ÓÃnewMethod()·½·¨¹¹ÔìÒ»¸öClassB¶ÔÏó
delete this.newMethod; //ɾ³ý¶ÔClassA()·½·¨µÄÒýÓã¬ÒÔºó²»ÄÜÔÙµ÷ÓÃËü£¬ÒòΪ¶ÔÏóÉú³Éºó²»¿ÉÄÜÔÙµ÷Óù¹Ô캯Êý
this.name=sName; //×ÓÀàµÄгÉÔ±±äÁ¿ºÍ·½·¨
this.showName=function (){
alert(this.name);
};
}
¶ÔÏóð³ä·½·¨µÄ¹Ø¼ü¾ÍÔÚÓÚ£¬Òª½«³¬ÀàµÄ¹¹Ô캯Êý¿´×öÒ»¸öÆÕͨº¯Êý½øÐÐÒýÓá£
ËùÓеÄгÉÔ±±äÁ¿ºÍз½·¨¶¼±ØÐëÔÚɾ³ýÁ˶Գ¬À๹ÔìÆ÷µÄÒýÓúó¶¨Ò壬·ñÔò¿ÉÄܻḲ¸Ç³¬ÀàµÄÏà¹ØÊôÐÔ¡£
¶ÔÏóð³ä¿ÉÒÔÖ§³Ö¶àÖØ¼Ì³Ð¡£
3.½«call()·½·¨ºÍ¶ÔÏóð³ä½áºÏʹÓÃ
function ClassB(sColor,sName){
ClassA.call(this,sColor); //¼´¶ÔClassBµÄʵÀýµ÷ÓÃClassA()¹¹Ô캯Êý£¬²¢½«sColor×÷Ϊ²ÎÊý´«Èë
this.name=sName;
 
Ïà¹ØÎĵµ£º
¼¸ºõËùÓеĸ» Web Ó¦Óö¼»ùÓÚÒ»¸ö»ò¶à¸ö Web UI ¿â»ò¿ò¼Ü£¬ÕâЩ UI
¿âÓë¿ò¼Ü¼«´óµØ¼ò»¯ÁË¿ª·¢½ø³Ì£¬²¢´øÀ´Ò»Ö£¬¿É¿¿£¬ÒÔ¼°¸ß¶È½»»¥ÐÔµÄÓû§½çÃæ¡£±¾ÎĽéÉÜÁË 15 ¸ö·Ç³£Ç¿´óµÄ JavaScript Web UI
¿â£¬·Ç³£Êʺϸ÷ÖÖ¸÷ÖÖ¹æÄ£µÄ¸» Web Ó¦ÓõĿª·¢¡£
LivePipe
LivePipe
UI
»ùÓÚ Prototype Javascript ¿ò¼Ü
£¬°üº ......
1.ÀûÓÃJavascriptʵÏÖ²âÊÔä¯ÀÀÆ÷ÀàÐÍÔÙµ÷ÓÃÏàÓ¦µÄÖ÷Ò³
¡¡¡¡ÓÉÓÚIEºÍNetscapeµÄijЩ²»¼æÈÝ£¬Ê¹µÃÖ÷Ò³ÖÆ×÷³öÀ´ºóÔÚÁ½ÕßÖÐÓнϴó²î±ð£¬ÓеÄÉõÖÁ²»ÄÜʹÓá£Îª±ãÓÚ¹ÜÀí£¬×î¼ÑµÄ·½·¨¾ÍÊÇÏȲâÊÔä¯ÀÀÆ÷ÀàÐÍ£¬ÔÙµ÷ÓÃÏàÓ¦µÄÖ÷Ò³¡£
¡¡¡¡ËüµÄ×ö·¨¾ÍÊÇÔÚ´ËÒ³ÉÏÉèÖÃÈ磺
¡¡¡¡£¼html£¾
¡¡¡¡£¼head£¾
¡¡¡¡£¼title£¾¼ì²âä¯ÀÀÆ÷£¼/title£ ......
Every Web developer has to tangle with tables. A new open source library, DisplayTag, can make life with tables much more organized. Find out how to combine the DisplayTag library with JavaScript to make a slick app that displays line item details.
by Stephen Strenn
isplaying data in a t ......
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>ͼƬÅÜÂíµÆ</title>
</head>
<body>
<div align="center" id="demo" style="overflow: hidden; height: 33px; width: 400px;
&nb ......
N.1 »ù±¾½éÉÜ£º
* showModalDialog() (IE 4+ Ö§³Ö)£¬ÓÃÀ´´´½¨Ò»¸öÏÔʾHTMLÄÚÈݵÄģ̬¶Ô»°¿ò¡£
* showModelessDialog() (IE 5+ Ö§³Ö) £¬ÓÃÀ´´´½¨Ò»¸öÏÔʾHTMLÄÚÈݵķÇģ̬¶Ô»°¿ò¡£
N.2 ʹÓ÷½·¨£º
* vReturnValue = window.showModalDialog(sURL [, vArgument ......