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

javascriptÈÕÆÚ¶ÔÏó

£±.ÈÕÆÚ¶ÔÏóµÄ¹¹Ôì
1.1µ±Ç°ÈÕÆÚ
          var now = new Date();
    1.2ÌØ¶¨ÈÕÆÚ
var someDate = new Date(yyyy,mm,dd);
    ×¢£ºÔÂÓ¦¸ÃÊÇ´Ó£°¿ªÊ¼¼ÆÊýµÄ.
   2. ÈÕÆÚº¯ÊýµÄʹÓÿÉÒÔ²ÎÕÕÏÂÃæµÄÁ´½Ó. http://www.w3school.com.cn/js/jsref_obj_date.asp
      ΪÁË·ÀÖ¹×Ô¼ºÍü¼Ç,ÔÙ²¹³äÒ»¸öº¯Êý.
      ÇóijÔÂÓжàÉÙÌìµÄʱºò,¿ÉÒÔ²ÎÕÕÏÂÃæµÄ·½·¨.
      var someDate = new Date(yyyy, mm, 0); //ÕâÑùÊǵÚmm¸öÔµÄ×îºóÒ»Ìì
      var days = someDate.getDate();


Ïà¹ØÎĵµ£º

JavaScriptÖÐifÓëcase±È½Ï

·¢ÏÖ×Ô¼º´úÂëÖÐÓÃifµÄµØ·½±È½Ï¶à£¬ÓÚÊǾÍÔÚÉÏÖܶÔcaseÓï¾äºÃºÃÑо¿ÁËÒ»·¬²¢ÓÅ»¯ÁË×Ô¼ºµÄ²¿·Ö´úÂë¡£Òò´Ë³öÏÖÁËÈçÏÂifºÍcaseµÄ±È½Ïһ˵¡£ÉùÃ÷µ±caseµÄÌõ¼þ¿éÖÐûÓÃbreakʱºò£¬ÊǺÍifÒ»ÑùµÄÒ»¸öÒ»¸öµÄÌõ¼þÀ´ÅжÏÖ´ÐС£µ±Ìõ¼þÖÐÓÐÁËbreak£¬±àÒëÆ÷»áΪËü×ö¶þ·Ö·¨ÓÅ»¯(»òÌø×ª±í)£¬¾ÍÊǸù¾ÝÌõ¼þÀ´Ìø×ª£¬Æ½¾ùÐÔÄܸßÓÚif¡£
¶¨Ò壺 d ......

ÈÕ³£javascriptÖ®Ò»

1¡¢ÎÞÌáʾ¹Ø±Õ´°¿Ú
<input type="button" onClick="window.opener = '';window.close();" value="IE6×î¼òµ¥µÄÎÞÌáʾ¹Ø±Õ´°¿Ú" >
2¡¢·ÀÖ¹±»ÈËiframe
if (top.location != self.location)
{
  top.location.href="http://www.34do.net";
}
3¡¢ÅжÏÒ»¸ö¶ÔÏó´æÔÚ²»´æÔÚ
document.all("a")==null£¨²»´æÔÚ£©
......

ÓÃJavaScript¸Ä½øÄãµÄÍøÒ³¿ò¼Ü

ÓÐÁ½ÖÖÍøÒ³Éè¼ÆÕߣºÏ²»¶Óÿò¼Ü(Frame)µÄºÍ²»Ï²»¶µÄ¡£²»Ï²»¶Ê¹Óÿò¼ÜµÄÈËÃÇ×ÜÊDZ§Ô¹Ëµ£¬¿ò¼ÜʹµÃÒ³Ãæ±äµÃ¸´ÔÓ£¬Ôö¼ÓÁËÏÂÔØ¸ºµ££¬¶øÇÒ»á¼õÉÙÄãµÄÒ³Ãæ±»ËÑË÷ÒýÇæÕÒµ½µÄ»ú»á¡£¶øÏ²»¶¿ò¼ÜµÄÉè¼ÆÕßÔò˵¿ò¼Üʹä¯ÀÀ±äµÃ¼òµ¥£¬²¢¸³ÓèÉè¼ÆÈËÔ±ÔÚ°²ÅÅÒ³ÃæÉϸü¶àµÄ¿ØÖÆ¡£
¡¡¡¡²»¹ÜÄãÊÇÔÞ³ÉʹÓÿò¼Ü»¹ÊÇ·´¶Ô£¬ÊÂʵÉÏ£¬´ø¿ò¼ÜµÄÒ³ÃæÒ»Ö±´ ......

´«ÖDz¥¿Í JavaScript DOM¼ÓÇ¿

ÉÏÁËÒ»ÌìµÄ¿Î,ºÜÀÛ,²»¹ýÕæµÄºÜ³äʵ.±È×Ô¼ºÑ§µÄЧÂÊÒª¸ßºÜ¶à,¶Ô¼¼ÊõµÄÀí½âÒ²Ìá¸ßÁ˲»ÉÙ.¶Ô×ܽáÓгäÂúÁËÐÅÐÄ,¸Ð¾õ×Ô¼ºÁ½¸ö°ëÔºóÒ»¶¨ÄÜÕÒµ½Ò»¸öÎåǧ¿éÒÔÉϵŤ×÷.¹þ¹þ!½ñÌì½²µÄÊÇJavaScriptµÄÓ¦ÓÃ.Ö÷ÒªÊÇÔÚÏîÄ¿ºÍ¹¤×÷Öо­³£Ê¹Óõ½µÄ¹¦ÄÜʵÏÖ.ÀÏʦ¶ÔJavaScriptµÄ×ܽáºÍÔËÓúÜÈ«ÃæºÍʵÓÃ.Ïȼòµ¥½éÉܼ¸¾ä½ÌÎÒJavaScriptµÄÀÏʦ,Ù¡ ......

JavascriptµÄÊý×éÏà¹ØÖªÊ¶

1.ÈÏʶÊý×é
Êý×é¾ÍÊÇijÀàÊý¾ÝµÄ¼¯ºÏ£¬Êý¾ÝÀàÐÍ¿ÉÒÔÊÇÕûÐÍ¡¢×Ö·û´®¡¢ÉõÖÁÊǶÔÏó
Javascript²»Ö§³Ö¶àάÊý×飬µ«ÊÇÒòΪÊý×éÀïÃæ¿ÉÒÔ°üº¬¶ÔÏó£¨Êý×éÒ²ÊÇÒ»¸ö¶ÔÏ󣩣¬ËùÒÔÊý×é¿ÉÒÔͨ¹ýÏ໥ǶÌ×ʵÏÖÀàËÆ¶àάÊý×éµÄ¹¦ÄÜ
1.1 ¶¨ÒåÊý×é
ÉùÃ÷ÓÐ10¸öÔªËØµÄÊý×é
var a = new Array(10);
´ËʱΪaÒѾ­¿ª±ÙÁËÄÚ´æ¿Õ¼ä£¬°üº¬10¸öÔªËØ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ