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

JavaScript ʱ¼ä¼Ó¼õ ¸Ä±ä

JavaScript ʱ¼ä¼Ó¼õ:
<HTML>
<BODY>
    <script type="text/javascript">
        var time = new Date("04/30/2010");
        document.write(time);
        document.write("<br>");
        //plus two days
        var haomiao = time.getTime() +2*24*60*60*1000;
        var plustime = new Date(time.setTime(haomiao));
        document.write(plustime);
    </script>
</BODY>
</HTML>
JavaScript ʱ¼ä¸Ä±ä£º
<HTML>
<HEAD>
</HEAD>
<BODY>
    <script type="text/javascript">
        //now time
        var nowtime = new Date();
        document.write(nowtime);
        document.write("<br>");
        //change time
        var changetime = new Date(nowtime.setYear("1987"));
        changetime = new Date(nowtime.setMonth("7"));
        changetime = new Date(nowtime.setDate("16"));
        document.write(changetime);
        document.write("<br>");
    </script>
</BODY>
</HTML>


Ïà¹ØÎĵµ£º

javascriptʼþ²éѯ×ÛºÏ

click() ¶ÔÏó.click() ʹ¶ÔÏó±»µã»÷¡£
closed ¶ÔÏó.closed ¶ÔÏó´°¿ÚÊÇ·ñÒѹرÕtrue/false
clearTimeout(¶ÔÏó) Çå³ýÒÑÉèÖõÄsetTimeout¶ÔÏó
clearInterval(¶ÔÏó) Çå³ýÒÑÉèÖõÄsetInterval¶ÔÏó
confirm("ÌáʾÐÅÏ¢") µ¯³öÈ·ÈÏ¿ò£¬È·¶¨·µ»ØtrueÈ¡Ïû·µ»Øfalse
cursor:Ñùʽ ¸ü¸ÄÊó±êÑùʽ hand crosshair text wait help defa ......

һЩjavascript¼¼ÇÉ

¼òÂÔÓï¾ä
JavaScript ¿ÉÒÔʹÓüòÂÔÓï¾ä¿ìËÙ´´½¨¶ÔÏóºÍÊý×飬±ÈÈçÏÂÃæµÄ´úÂ룺
¿ÉÒÔʹÓüòÂÔÓï¾äÈçÏ£º
¶ÔÏó car ¾Í´Ë´´½¨£¬²»¹ýÐèÒªÌØ±ð×¢Ò⣬½áÊø»¨À¨ºÅǰһ¶¨²»Òª¼Ó ";" ·ñÔòÔÚ IE »áÓöµ½ºÜ´óÂé·³¡£
´´½¨Êý×éµÄ´«Í³·½·¨ÊÇ£º
ʹÓüòÂÔÓï¾äÔò£º
ÁíÒ»¸ö¿ÉÒÔʹÓüòÂÔÓï¾äµÄµØ·½ÊÇÌõ¼þÅжÏÓï¾ä£º
¿ÉÒÔ¼òÂÔΪ£ ......

Javascript ģ̬´°¿Ú

<html>
<head>
    <script language="javascript">
        function overlay() {
            xyz = document.getElementById("overlay");
   &n ......

JavaScript±Ê¼Ç ÓïÑÔ»ù´¡

ÐèÒªÁ˽âµÄHTML֪ʶ
       ±êÇ© table,tr,th,td
 
ÓÃÑ­»·½øÐÐÖØ¸´²Ù×÷
       for(;;){}
 
javascript×Ö·û´®
       ÔÚjavascriptÖУ¬µÚÒ»¸ö×Ö·ûÔÚλÖÃ0ÉÏ¡£cat£¬cÔÚλÖÃ0ÉÏ£¬aÔÚλÖÃ1É ......

javascript¼¼ÇÉ

1¡¢×Ö·û´®×ª»»ÎªÊýÖµ
³£¹æ·½·¨£º
JScript code
var a = parseFloat("12");
var b = parseInt("34");
¿ÉÒÔÓÃ
JScript code
var a = +("12");
var b = +("34");
2¡¢¶àάÊý×é
³£¹æ·½·¨£º
JScript code
var A = new Array(2);
A[0] = new Array(2);
A[1] = new Array(2);
A[0][0] = 1;
A[0][1] = 2;
A[1][0] = ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ