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

javascriptÖеÄwith

with(document)  
  {  
      write   ("test");  
      write  
("dsasfda");  
  }  
  ÉÏÃæÊÇÓÃÁËwith  
  Èç¹û²»Óõϰ¾ÍÒªÕâÑùдÁË  
 
document.write   ("test")  
  document.write   ("dsasfda");  
   
 
Ê¡µôÁ˲»ÉٵĴúÂëÓ´


Ïà¹ØÎĵµ£º

javascriptÔÚffºÍieÁ½ÖÖä¯ÀÀÆ÷ϵÄÇø±ð(Ò»)

1.document.formName.item('itemname')µÄÎÊÌâ ˵Ã÷£ºIEÏ¿ÉÒÔʹÓÃdocument.formName.item('itemname')ºÍdocument.formName.elements('elementsName'); FFÏÂÖ»ÄÜʹÓÃdocuement.formName.elements('elementsName'); ½â¾ö·½·¨£ºÍ³Ò»Ê¹ÓÃdocuement.formName.elements('elementsName'); 2.¼¯ºÏÀà¶ÔÏóÎÊÌâ ˵Ã÷£ºIEÏ¿ÉÒÔʹÓÃ[]ºÍ ......

javascript ѧϰ±Ê¼Ç£¨3£©

1. º¯ÊýÔÚÖ´ÐÐÍê return Ö¸Áîºó¾Í»áÍ£Ö¹Ö´ÐдúÂë.
function test(Num1,Num2){
return Num1+Num2;
alert(Num1+Num2); //never outputs

2. javascript º¯Êý²»ÄÜÖØÔØ,Ò²¾ÍÊÇ˵¿ÉÒÔÔÚͬһ¸ö×÷ÓÃÓòÖж¨Òå¶à¸öͬÃûº¯Êý,¶ø×îÖÕÖ´ÐеÄÊǺóÒ»¸öº¯Êý.
function test(num){
alert(num+10);
}
function ......

JavaScript ÄÜ×öʲô

JavaScript ÄÜ×öʲô£¿
JavaScript Ϊ HTML Éè¼ÆÊ¦ÌṩÁËÒ»ÖÖ±à³Ì¹¤¾ß HTML ´´×÷ÕßÍùÍù¶¼²»ÊdzÌÐòÔ±£¬µ«ÊÇ JavaScript È´ÊÇÒ»ÖÖÖ»ÓµÓм«Æä¼òµ¥µÄÓï·¨µÄ½Å±¾ÓïÑÔ£¡¼¸ºõÿ¸öÈ˶¼ÓÐÄÜÁ¦½«¶ÌСµÄ´úÂëÆ¬¶Ï·ÅÈëËûÃÇµÄ HTML Ò³Ãæµ±ÖС£ JavaScript ¿ÉÒÔ½«¶¯Ì¬µÄÎı¾·ÅÈë HTML Ò³Ãæ ÀàËÆÓÚÕâÑùµÄÒ»¶Î JavaScript ÉùÃ÷¿ÉÒÔ½«Ò»¶Î¿É± ......

javascript ѧϰ±Ê¼Ç£¨5£© ¼Ì³Ð

1. ijЩ»ùÀàÈç¹û²»Ö±½ÓʹÓÃ,¶ø½ö½öÖ»ÊÇÓÃÓÚ¸ø×ÓÀàÌṩͨÓõĺ¯Êý,ÕâÖÖÇé¿öÏÂ,»ùÀà±»¿´×÷³éÏóÀà.
2. ÔÚ javascript µÄÀàÖÐËùÓеķ½·¨ºÍÊôÐÔ¶¼ÊÇ"¹«ÓõÄ".
3. javascript Öеļ̳в¢²»ÊÇÃ÷È·¹æ¶¨µÄ,¶øÊÇͨ¹ýÄ£·ÂÀ´ÊµÏÖµÄ.ÓÐÒÔÏ·½·¨:
(1). ¶ÔÏóð³ä
function A(sColor){
this.color = sColor;
this.showColo ......

javascript ʹÓÃCookies

ÔÚ document ¶ÔÏóÖÐÓÐÒ»¸ö cookie ÊôÐÔ¡£µ«ÊÇ Cookie ÓÖÊÇʲô£¿“ijЩ Web Õ¾µãÔÚÄúµÄÓ²ÅÌÉÏÓúÜСµÄÎı¾Îļþ´æ´¢ÁËһЩÐÅÏ¢£¬ÕâЩÎļþ¾Í³ÆÎª Cookie¡£”—— MSIE °ïÖú¡£Ò»°ãÀ´Ëµ£¬Cookies ÊÇ CGI »òÀàËÆ£¬±È HTML ¸ß¼¶µÄÎļþ¡¢³ÌÐòµÈ´´½¨µÄ£¬µ«ÊÇ JavaScript Ò²ÌṩÁË¶Ô Cookies µÄºÜÈ«ÃæµÄ·ÃÎÊȨÀû ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ