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

javascriptÈÕÆÚÅжÏ

function checkserch()
{
    var stratTime =document.all("startdate").value;
    var endTime = document.all("enddate").value;
    var arr1=stratTime.split("-");
    var arr2=endTime.split("-");
    if((stratTime == '' & endTime != '') || (stratTime != '' && endTime == ''))
    {
       return false;
    }
    var a1;
    var a2;
    try
    {
        a1=new Date(arr1[0],arr1[1],arr1[2]);
        a2=new Date(arr2[0],arr2[1],arr2[2]);
            if(a1>a2)
            {
                alert("ÆðʼÈÕÆÚ²»ÄÜ´óÓÚÖÕÖ¹ÈÕÆÚ£¡");
                return false;
            }                                       
    }
    catch(e)
    {
    return false;
    }
}


Ïà¹ØÎĵµ£º

JavaScript¾«´â¶ÁÊé±Ê¼Ç(8)

µÚ8ÕÂ
 
·½·¨
JavaScript
°üº¬ÁËÉÙÁ¿¿ÉÓÃ
ÔÚ±ê×¼ÀàÐÍÉϵıê×¼·½·¨¡£
Array
array.concat(item…)
concat
·½·¨·µ»ØÒ»¸öÐÂÊý×飬Ëü
°üº¬
array
µÄdz¸´ÖÆ
(shallow copy)
²¢½«
1
¸ö»ò¶à¸ö²ÎÊý
item
¸½¼ÓÔÚÆäºó¡£Èç¹û²ÎÊý
item
ÊÇÒ»¸öÊý×飬ÄÇôËüµÄÿ¸öÔªËØ»á±»·Ö±ðÌí¼Ó¡£´ËÍ⣬Çë²Î¼û±¾Õºóà ......

JavaScript¾«´â¶ÁÊé±Ê¼Ç(1)

http://blog.csdn.net/mouyong/archive/2009/10/02/4626852.aspx
Èç¹ûÄãÏë¼ÓÔ­×÷ÕßΪºÃÓÑ£ºÇëµã»÷ÒÔÏÂÁ´½Óhttp://hi.csdn.net/invite.php?u=8943&c=759c7fc189ea23c1
µÚ1Õ   ¾«»ª
JavaScriptµÄÌØÐÔÖÐÓÐÒ»²¿·ÖÌØÐÔ´øÀ´µÄÂé·³Ô¶Ô¶³¬³öËüÃǵļÛÖµ¡£ÆäÖУ¬Ò»Ð©ÌØÐÔÊÇÒòΪ¹æ·¶ºÜ²»ÍêÉÆ£¬´Ó¶ø¿ÉÄܵ¼Ö¿ÉÒÆ ......

JavaScript¾«´â¶ÁÊé±Ê¼Ç(3)

http://blog.csdn.net/mouyong/archive/2009/11/21/4847303.aspx
µÚ3Õ  ¶ÔÏó
JavaScriptµÄ¼òµ¥ÀàÐͰüÀ¨Êý×Ö¡¢×Ö·û´®¡¢²¼¶ûÖµ£¨trueºÍfalse£©¡¢nullÖµºÍundefinedÖµ¡£ÆäËûËùÓеÄÖµ¶¼ÊǶÔÏó¡£Êý×Ö¡¢×Ö·û´®ºÍ²¼¶ûÖµ“Ã²ËÆ”¶ÔÏó£¬ÒòΪËüÃÇÓµÓз½·¨£¬µ«ËüÃÇÊDz»¿É±äµÄ¡£JavaScriptÖеĶÔÏóÊǿɱäµÄ¼ü-Öµ ......

JavaScript¾«´â¶ÁÊé±Ê¼Ç(4)


http://blog.csdn.net/mouyong/archive/2009/12/07/4959741.aspx
µÚ4Õ  º¯Êý
JavaScriptÖÐ×îºÃµÄÌØÐÔ¾ÍÊÇËü¶Ôº¯ÊýµÄʵÏÖ¡£Ëü¼¸ºõÎÞËù²»ÄÜ¡£µ«ÊÇ£¬Ïë±ØÄãÒ²ÄÜÔ¤Áϵ½£¬º¯ÊýÔÚJavaScriptÀïÒ²²¢·ÇÍòÄÜÒ©¡£
º¯Êý°üº¬Ò»×éÓï¾ä£¬ËüÃÇÊÇJavaScriptµÄ»ù´¡Ä£¿éµ¥Ôª£¬ÓÃÓÚ´úÂ븴Óá¢ÐÅÏ¢Òþ²ØºÍ×éºÏµ÷Ó᣺¯ÊýÓÃÓÚÖ¸¶¨¶ ......

±ßѧ±ß̸ javascriptµÄðºÅ

×òÌì¿´µ½Ò»¸öjs  ·¢ÏÖ obj=£ûa£º"123",b:"abc",objfunction:function(){...}£ý ÕâÑùµÄÓï¾ä£¬Óеã·Ñ½â
ÏÖÔÚ°Ñ´ÓÊéÉϺÍÍøÉÏÕÒµ½µÄÒ»µã¶«Î÷Ìù³öÀ´  ×ÔÓÃ&¹²Ïí
javascriptµÄðºÅ  ÓÃ;£º
1¡¢switchÓï¾ä·ÖÖ§
 
     switch (s) { 
     &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ