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

ѧϰ¡¶JavaScript¸ß¼¶³ÌÐòÉè¼Æ¡·Ñ§Ï°±Ê¼Ç£¨¶þ£©

Ò»¡¢deleteÔËËã·ûɾ³ý¶ÔÒÔÇ°¶¨ÒåµÄ¶ÔÏóÊôÐÔ»ò·½·¨µÄÒýÓãº
    var o=new Object();
    o.name="hello";
    alert(o.name);    //Êä³ö“hello”
    delete o.name£»
    alert(o.name);   //Êä³ö“undefined” .
     deleteÖ»ÄÜɾ³ý×Ô¼º¶¨ÒåµÄ£¬²»ÄÜɾ³ýϵͳµÄ¡£
¶þ¡¢void  ÔËËã·û¶ÔÈκÎÖµ¶¼·µ»Ø undefined
Èý¡¢×óÒÆÔËËã<<£¬ÓÒÒÆÔËËã>>.
ËÄ¡¢for-inÑ­»·Óï¾ä
Îå¡¢ÓбêÇ©µÄÓï¾ä£¬¸øÓï¾ä¼Ó±êÇ©ÒÔ±ãÒÔºóʹÓá£
    start:var iConunt = 10;
Áù¡¢arguments ¶ÔÏ󣬿ª·¢ÕßÎÞÐëÃ÷È·Ö¸³ö²ÎÊýÃûÒ²¿ÉÒÔ·ÃÎÊËûÃÇ¡£
      ʹÓô˶ÔÏó¿ÉÒÔÄ£Ä⺯ÊýÖØÔØ¡£
      ʹÓÃargument.length¿ÉÒÔÖªµÀµ÷Óô˺¯Êý´«ÈëÁ˼¸¸ö²ÎÊý¡£
      È磺
          function doAdd(){
               if(argument.lenght==1){
                   alert(argument[0]+10);
               }else if(argument.lenght==2){
                   alert(argument[0]+argument[1])
               }
          }
          Ö´ÐÐ:
          doAdd(10);         //Êä³ö£º 20
          doAdd(30,20);    //Êä³ö£º  50
Æß¡¢Function Àà
      º¯Êýʵ¼ÊÉÏÊÇÍêÕûµÄ¶ÔÏó
     ËùÓеĺ¯Êýʵ¼ÊÉÏÊÇFunctionµÄÒ


Ïà¹ØÎĵµ£º

javascript²Ù×÷dom ½¨Á¢ Ôö¼Ó ɾ³ý ¿Ë¡ ·ÃÎʽڵã

Ò»¡¢DOM»ù´¡
1.½Úµã(node)²ã´Î
Document£­£­×²ãµÄ½Úµã£¬ËùÓеÄÆäËû½Úµã¶¼ÊǸ½ÊôÓÚËüµÄ¡£
DocumentType£­£­DTDÒýÓã¨Ê¹ÓÃ<!DOCTYPE>Óï·¨£©µÄ¶ÔÏó±íÏÖÐÎʽ£¬Ëü²»ÄÜ°üº¬×ӽڵ㡣
DocumentFragment£­£­¿ÉÒÔÏñDocumentÒ»ÑùÀ´±£´æÆäËû½Úµã¡£
Element£­£­±íʾÆðʼ±êÇ©ºÍ½áÊø±êÇ©Ö®¼äµÄÄÚÈÝ£¬ÀýÈç<tag></tab ......

C#ÖнâÎöjavascript´úÂë


´ó²¿·ÖµÄ½âÊÍÐͽű¾ÓïÑÔ¶¼Ìṩ eval ·½·¨À´Íê³É¶¯Ì¬´úÂëµÄ½âÊÍÖ´ÐУ¬ C# È´²¢²»Ìṩ£¨Ïò Java ѧϰ£©¡£²»¹ýÔÚ .NET Framework Àà¿âÀïÃæÌṩµÄ Microsoft.JScript ÃüÃû¿Õ¼äµ¹ÊÇ°üº¬ÁËÖ§³ÖʹÓÃJScript ÓïÑÔ±àÒëºÍÉú³É´úÂëµÄÀà¡£
ÏÈÉÏ´úÂ룺
¡¡¡¡¸ÃÀàÐèÒªÄãÌí¼Ó¶Ô³ÌÐò¼¯ Microsoft.JScript µÄÒýÓã»Èç¹û°Ñ“current v ......

JavaScriptÖÐconfirmµÄÓ÷¨

confirmº¯Êý 
confirmº¯ÊýÓÃÓÚÌṩȷÈϹ¦ÄÜ£¬ËüÊ×ÏÈÏÔʾ¸ø¶¨µÄmessage²ÎÊýËù°üº¬µÄÐÅÏ¢£¬²¢ÌṩÁ½¸ö¿ÉÑ¡ÔñµÄ»Ø´ð“ok”ºÍ“cancel”£¬È»ºóµÈ´ýÓû§Ñ¡ÔñÆäÖеÄÒ»¸ö¡£Èç¹ûÓû§Ñ¡Ôñ“ok”Ôò·µ»Øtrue£»·ñÔò£¬ÈçÈôÑ¡Ôñ“cancel”Ôò·µ»Øfalse¡£¸Ãº¯ÊýµÄÓï·¨¸ñʽÈçÏ£º
window.con ......

ÔÚ Wordpress ²å¼þÖÐʹÓà Javascript(jQuery) ½Å±¾

    ÓÐÁËÇ°ÃæµÄһƪÎÄÕ¡¶ÔÚ Wordpress ²å¼þÖÐʹÓÃÑùʽ±í¡·£¬Ôò±¾½Ú¡¶ÔÚ WP ²å¼þÖÐʹÓà Javascript¡·¾ÍºÃÃèÊö£¬Ò²ÈÝÒ×Àí½âµÄ¶àÁË¡£
    1£¬²å¼þµÄÎļþ¼Ð½á¹¹ÓëÇ°ÎÄÏàͬ¡£²å¼þÍê³ÉµÄ¹¦ÄÜÇ°ÎÄÒѾ­Êö¼°£¬±¾½Ú½«¼ÓÒ»¸ö¹¦ÄÜ£¬µ±ÔÚÎÄ×ÖÉϵã»÷ʱ£¬µ¯³öÒ»¸ö´°¿Ú¡£±¾½ÚʾÀýÒ²ÔÚÇ°ÎÄʾÀýµÄ»ù´¡ÉÏ¿ª·¢¡ ......

javascript²Ù×÷xmlÉú³ÉÊ÷Ðβ˵¥


Õâ¸öЧ¹ûÓ¦¸Ã²»ËãʲôϡÆ棬ÍøÉÏÒ²ÓÐÏֳɵĴúÂ룬ÎÒÕâ¸öҲûʲôÌرðµÄµØ·½£¬Ö»ÊÇÒòΪÎÒ×Ô¼ºÐ´µÄ£¬Ò²ËãÊÇΪѧϰDOMºóÒ»¸öÁ·Ï°£»ÔÚIEϲâÊÔͨ¹ý£»
ʵÏÖЧ¹ûÊÇÕâÑùµÄ£º
¶ÁÈ¡XMLÎĵµ£»
²ÉÓõݹéÉú³ÉÎÞÏÞ¼¶µÄÊ÷Ðβ˵¥£»
Äܹ»ÏìÓ¦Êó±êʼþ£¬Õ¹¿ªÓë²ðµþ×Ó¼¶²Ëµ¥£»
Ê×ÏÈÊÇÉú³ÉÒ»¸öXMLÎĵµ£¬ÎÒÓõÄÊÇXML SpyµÄ±à¼­Æ÷£»
< ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ