Ò»¸ö¼òµ¥ºáÏòjavascriptÈÕÆڿؼþ
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> new document </title>
<meta name="generator" content="editplus" />
<meta name="author" content="" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<style type="text/css">
*{font-size:14px}
/*ÈÕÆÚ×îÍâ²ã*/
#logCalendar{width:950px;border-top:1px solid #ccc;border-left:1px solid #ccc}
/*ÈÕÆÚÄÚ²¿ËùÓе¥Ôª¸ñ*/
#logCalendar td{
border-right:1px solid #ccc;border-bottom:1px solid #ccc;
padding-left:5px;text-align:center;
height:22px;line-height:22px;
}
#daysList{border-top:1px solid #ccc;border-left:1px solid #ccc}
/*ÈÕÆÚÁбíËùÓе¥Ôª¸ñ*/
#daysList td{text-align:center;height:22px}
/*Öܴμ°ÐÇÆÚ¼¸µÄÊäÈë¿ò*/
.bd{border:0;text-align:center;color:#00f}
/*ÈÕÆÚĬÈÏÑùʽ*/
.unSelectDay{
color:#00f;font-weight:normal;
padding:3px;cursor:pointer;
text-decoration:underline
}
/*µ±Ç°µã»÷µÄÈÕÆÚÑùʽ*/
.selectDay{color:#fff;font-weight:bold;background:#FEB0B0;padding:1px;text-decoration:none;cursor:normal}
/*ÖÜÄ©Ñùʽ*/
.weekEnd{color:#f00}
.test{color:#f00;text-decoration:none}
</style>
 
Ïà¹ØÎĵµ£º
Ç°Ìì×öµÄÒ³ÃæÊÇÒ»¸öiframeµ¯³ö´°¿Ú£¨ËµÃ÷һϣºÍ¬ÊÂÓÃjs½Å±¾¿ª·¢³öÀ´µÄ£©Àï´¥·¢Ò»¸ö<a>Á´½ÓµÄ°´Å¥¿ÉÔڸô°¿ÚÉϵ¯³öÒ»¸ödivÐü¸¡²ã¡£µ«ÊÇÿ´Îµã»÷£¬divÐü¸¡²ã¾Í×Ô¶¯Î»ÓÚIE´°¿ÚµÄ¶¥¶Ë£¬ÏÂÃæµÄiframe´°¿Ú°üº¬µÄÒ³Ãæ»á×Ô¶¯ÉÏÒÆ£¬Î»ÖôíÂÒÁË¡£
ͬÊÂ˵Ö÷ÒªÊ ......
1£¬¶ÔÏóµÄ¹¹³É
¶ÔÏóÓÐÌØÐÔ¹¹³É(attribute)£¬¿ÉÒÔÊÇÔʼֵ£¬Ò²¿ÉÒÔÊÇÒýÓÃÖµ¡£Èç¹ûÌØÐÔ´æ·ÅµÄÊǺ¯Êý£¬Ëü½«±»¿´×ö¶ÔÏóµÄ·½·¨£¨method£©£¬·ñÔò¸ÃÌØÐÔ±»¿´×öÊôÐÔ£¨property£©¡£
2£¬¶¨ÒåÀà»ò¶ÔÏó
£¨1£©¹¤³§·½Ê½
Code
function createCar(sColor,iDoors) {
&nb ......
ÀûÓÃJavascript´´½¨µ¯³öʽ´°¿ÚµÄÄ¿µÄʵ¼ÊÉÏÊÇ´ò¿ªÁíÍâµÄä¯ÀÀÆ÷´°¿Ú¡£Äã¿ÉÒÔÉèÖÃÕâ¸öä¯ÀÀÆ÷´°¿ÚµÄһЩÊôÐÔ£¬Èç¸ß¶È¡¢¿í¶ÈÒÔ¼°ÊÇ·ñÈøô°¿ÚÓÐÒ»¸ö״̬Ìõ»òÕß¹¤¾ßÌõ¡£ÔÚÏÂÃæµÄÀý×ÓÖУ¬ÎÒ½«´°¿ÚÉèÖÃΪ£º350
x 400£¬¼´¸ß¶ÈΪ350ÏñËØ£¬¿í¶ÈΪ400ÏñËØ£»ÆäÖÐÒ²°üÀ¨ÁËÁíÍâµÄһЩÉèÖã¬Èç¹ö¶¯Ìõ£»¶ø½«ÆäËüµÄÉèÖã¨Èç״̬Ìõ¡¢²Ëµ¥Ìõ£© ......
1£¬ jsÖеÄÀàÊý×é¶ÔÏó
(1) arguments¶ÔÏó:
function(){
//arguments¶ÔÏóÊÇArguments¶ÔÏóʵÀý£¬ÊÇÒ»¸öÀàÊý×é¶ÔÏ󣬲¢ÓµÓÐÏÂÁз½·¨
alert(arguments instanceof Array);//false
arguments.callee(); //¶Ô×ÔÉíµÄµ÷Ó㬠ÓÃÓڵݹé
var c = arguments.caller; //¶Ôµ÷ÓÃ×ÔÉíº¯ÊýµÄ¸¸º¯Êý, Èç¹û ......
ÔÚµÚÒ»ÕÂÖУ¬ÎÒÃÇʹÓù¹Ô캯ÊýºÍÔÐ͵ķ½Ê½ÔÚJavaScriptµÄÊÀ½çÖÐʵÏÖÁËÀàºÍ¼Ì³Ð£¬ µ«ÊÇ´æÔںܶàÎÊÌâ¡£ÕâÒ»ÕÂÎÒÃǽ«»áÖðÒ»·ÖÎöÕâЩÎÊÌ⣬²¢¸ø³ö½â¾ö·½°¸¡£
×¢£º±¾ÕÂÖеÄjClassµÄʵÏֲο¼ÁËSimple JavaScript Inheritance
µÄ×ö·¨¡£
Ê×ÏÈÈÃÎÒÃÇÀ´»Ø¹ËһϵÚÒ»ÕÂÖнéÉܵÄÀý×Ó£º
function Person(name) {
this.name = nam ......