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

javascript¶¨Òå¶þάÊý×éµÄ·½·¨

javascript¶¨Òå¶þάÊý×éµÄ·½·¨ javascript±¾ÉíÖ»Ö§³ÖһάÊý×飬
ÓÐʱ·ÇÒªÓõ½¶þάÊý×éµÄʱºò£¬ ¿ÉÒÔ½«Ò»Î¬Êý×éµÄ·ÖÏîÓÖ¶¨ÒåΪһ¸öÊý×飬 ¶þάÊý×é¾ÍÊÇÓÃÊý×é¹¹³ÉµÄÊý×é
Var aa=new Array(); //¶¨ÒåһάÊý×é
for(i=1;i<=10;i++)
{
      aa[i]=new Array(); //½«Ã¿Ò»¸ö×ÓÔªËØÓÖ¶¨ÒåΪÊý×é
      for(n=0;n<=10;n++)
      {
            aa[i][n]=i+n; //´Ëʱaa[i][n]¿ÉÒÔ¿´×÷ÊÇÒ»¸ö¶þ¼¶Êý×é
      }
}


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

ÈçºÎѧºÃjavascript תÔØ

 
       Ê×ÏÈÄãÒª¸ãÇå³þÒ»¼þ¶«Î÷£¬¾ÍÊÇJAVA JAVASCRIPT³ýÁ˳¤µÄÏóÒÔÍâûÓÐÒ»ÑùµÄµØ·½£¬JAVAÊÇÒÀÀµÓÚJAVAÐéÄâ»úÔËÐеÄÒ»ÖÖÃæÏò¶ÔÏóµÄÇ¿ÀàÐÍÓïÑÔ£¬JAVASCRIPTÊÇÒÀÀµÓÚä¯ÀÀÆ÷µÄÒ»ÖÖÈôÀàÐÍÓïÑÔ
javascripºÍcssÊÇǶÌ×ÔÚaspÓïÑÔÖеÄ
×ÜÖ®£¬Ë³Ðò¾ÍÊÇ£º
¾²Ì¬ÍøÒ³ÖÆ×÷£ºhtml
ÍøÒ³Èý½£¿Í ......

JavaScript ÑÕÉ«ÌݶȺͽ¥±äЧ¹û¸üÐÂ

½üÀ´¿´ÁËDeanµÄ“Convert any colour value to hex in MSIE”£¬ÖÕÓÚ½â¾öÁ˸ù¾Ý¹Ø¼ü×Ö»ñÈ¡ÑÕÉ«rgbÖµµÄÎÊÌâ¡£
˳±ã°Ñ³ÌÐòÒ²ÖØÐÂÕûÀíÒ»·¬£¬²¢Ê¹ÓÃÁË×î½üÕûÀíµÄ¹¤¾ß¿â¡£
Ч¹ûÔ¤ÀÀµ½ÕâÀï
ÏÂÔØÍêÕûʵÀý
³ÌÐò˵Ã÷
¡¾ColorGradsÑÕÉ«Ìݶȡ¿
³ÌÐòColorGradsµÄ×÷ÓÃÊǸù¾ÝÑÕÉ«¼¯ºÏºÍ½¥±ä¼¶ÊýÉú³ÉÑÕÉ«Ìݶȼ¯ºÏ¡£
½¥±ä¼ ......

JavaScript NameSpace

    ÃüÃû¿Õ¼ä£¬Ò»¿´¾ÍÖªµÀÖ÷ҪĿµÄÊÇΪÁ˱ÜÃâ³åÍ»¡£ÏÂÃæ¾ÍÀ´ËµÒ»ÏÂÈçºÎ´òÔì×Ô¼ºµÄJavaScriptÃüÃû¿Õ¼ä¡£
    ´òÔìJavaScriptÃüÃû¿Õ¼äÆäʵºÜ¼òµ¥£¬Ö»ÐèÒª½«×Ô¼ºµÄº¯Êý¡¢¶ÔÏó¡¢±äÁ¿µÈ·ÅÔÚÒ»¸öαÃüÃû¿Õ¼äÖУ¬¼´ÓÃÒ»¸öÄäÃûº¯Êý°ü×°ÆðÀ´¡£
(function(){
    function $(id){
&n ......

¡¶JavaScript And DHTML Cookbook¡·Ñ§Ï°±Ê¼Ç

¡¡¡¡´ËÎÄΪ¶Á¡¶JavaScript And DHTML Cookbook¡·ºó×ܽá³öÀ´µÄ±Ê¼Ç¡£ÓÉÓÚµ±Ê±Êdzõѧ£¬ËùÒԱʼÇÖÐÄÑÃâÓдíÎ󣬻¶Ó­Ö¸Õý¡£Ð»Ð»£¡
·×Ö·û´®(String)
  1.ÉùÃ÷
    var myString = new String("Every good boy does fine.");
    var myString = "Every good boy does fine.";
&n ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ