Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaScript Rubicon

javascript ÊÇÒ»ÖÖÇø·Ö´óСдµÄ³ÌÐòÓïÑÔ.
¶¨ÒåÊý×é:
var strweek= new Array(7);
Îʺűí´ïʽ
var i= (condition)?A:B;
Ï൱ÓÚif-else Óï¾ä;condition ³ÉÁ¢ Ö´ÐÐA £¬²»³ÉÁ¢Ö´ÐÐB;
switch Óï¾ä
var i=3;
var result="";
swithck(i);
{
case 1;
 result="First"; 
case 2;
 result="Second";
case 3;
 result="Three";
break;
}
DateÀà
getDate() getYear() getMont()
getMinutes() getHours() getSeconds()
setTimeout("fution()",1000);


Ïà¹ØÎĵµ£º

ÈçºÎΪjavascript´úÂë±àдעÊÍÒÔÖ§³ÖÖÇÄܸÐÖª

¡¾×ª¡¿http://www.cnblogs.com/chenxizhang/archive/2009/07/12/1522058.html
ÔÚʹÓÃVisual Studio×ö¿ª·¢µÄʱºò£¬ÖÇÄܸÐÖªÊǷdz£·½±ãµÄ¡£´ÓVS2008¿ªÊ¼£¬ÌṩÁ˶ÔjavascriptµÄÖÇÄܸÐÖªÖ§³Ö¡£ÀýÈç

ÉÏÊö´úÂëÖУ¬ÎÒÃÇÏÈÓÃdocument¶ÔÏóµÄgetElementByIdµÄ·½Ê½È¡µÃÁËÎĵµÖеÄÒ»¸öIdΪform1µÄÔªËØ£¬Êµ¼ÊÉϾÍÊÇĬÈϵÄÄǸö´°ÌåÔ ......

frameµÄʹÓá¡ÒÔ¼°javascript¶ÔÆäµÄ²Ù×÷

FRAMESET ±êÇ©ÊÇ FRAME ÔªËصÄÈÝÆ÷¡£
HTML Îĵµ¿É°üº¬ FRAMESET ÔªËØ»ò BODY ÔªËØÖ®Ò»£¬Á½Õß²»ÄÜͬʱʹÓá£
¿ò¼Ü½«ÍøÒ³·Ö³É¼¸¸ö¿ò´°£¬Í¬Ê±È¡µÃ¶à¸öURL¡£ÓÃ<FRAMESET> <FRAME> ¼´¿É£¬ËùÓпò¼Ü±ê¼ÇÐèÒª·ÅÔÚÒ»¸ö×ÜÆðµÄ html ÎĵµÀÕâ¸öµµ°¸Ö»¼Ç¼Á˸ÿò¼ÜÈçºÎ·Ö¸î £¬²»»áÏÔʾÈκÎ×ÊÁÏ£¬ËùÒÔ²»±Ø·ÅÈë <BODY& ......

ÉîÈëÀí½âJavascript±Õ°ü

 ×î½üÔÚÍøÉϲéÔÄÁ˲»ÉÙJavascript±Õ°ü(closure)Ïà¹ØµÄ×ÊÁÏ£¬Ð´µÄ´ó¶àÊǷdz£µÄѧÊõºÍרҵ¡£¶ÔÓÚ³õѧÕßÀ´Ëµ±ð˵Àí½â±Õ°üÁË£¬¾ÍÁ¬ÎÄ×ÖÐðÊö¶¼ºÜÄÑ¿´¶®¡£×«Ð´´ËÎĵÄÄ¿µÄ¾ÍÊÇÓÃ×îͨË×µÄÎÄ×Ö½Ò¿ªJavascript±Õ°üµÄÕæʵÃæÄ¿¡£
¡¡¡¡Ò»¡¢Ê²Ã´ÊDZհü£¿
¡¡¡¡“¹Ù·½”µÄ½âÊÍÊÇ£ºËùν“±Õ°ü”£¬Ö¸µÄÊÇÒ»¸öÓµÓÐÐ ......

javascriptµÄ±ÊÊÔÌâÄ¿£¨¹²17µÀ£©¸½²Î¿¼´ð°¸

Éϴβ¿ÃÅÕÐƸÐèÒªwebǰ̨¼¼Êõ±ÊÊÔÌâÄ¿£¬ÎÒÔÚÍøÉÏËÑË÷һϣ¬»¹ÕæÕÒ²»µ½Ê²Ã´¡£ÓÚÊÇ×Ô¼º±àÁ˼¸µÀ¡£  
  ÕÐƸ½áÊøÁË£¬ÌâÄ¿¹À¼ÆûÓÃÁË¡£ÕâÀ﹫²¼³öÀ´£¬¶Ôjs¸ÐÐËȤµÄÐÂÊÖ¿ÉÒÔ×ö×ö¿´£¬»òÐíÓаïÖúŶ¡£  
  ´ð°¸¾Í²»¹«²¼ÁË£¬×Ô¼ºÒ»ÊÔ¾ÍÖªµÀÁË¡£  
   
  Ò»¡¢µ¥Ñ¡Ìâ  
  ......

JavaScript Ìí¼Óɾ³ý checkbox

<html>
<body>
<table width="200" border="1" id="tb">
<tr id="r1">
<td><input type="checkbox" name="ck" value="1"></td>
<td>abc</td>
</tr>
</table>
<p>
<input type="button" onClick="add();" value="add"/> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ