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

javascriptÖеÄÁ½¸öÎÊÌâÇë½Ì£¬Ð»Ð»

1.¿´µ½¡¶¾«Í¨javascript¡·ÉÏ˵£ºjavascriptÊÇÍêÈ«Òì²½µÄ£¬ÄÇôÊDz»ÊÇÿÌõÓï¾ä¶¼²»»áÖ´ÐÐÍ꣬ÏÂÌõÓï¾ä¾Í¿ªÊ¼Ö´ÐÐÄØ£¬Êµ¼ÊÉϲ»ÊÇÕâÑù£¬Ò²²»¿ÉÄÜÊÇÕâÑù£¬²»È»Ôõôд³ÌÐò£¿
2.´úÂëÈçÏ£¬ÎªÊ²Ã´²»¿ÉÐÐÄØ£º
JScript code:

while ( ! window.loaded() ) { }
// The page is loaded now, so start doing stuff
document.getElementById(¡°body¡±).style.border = "1px solid #000";


¿´ÊéÉÏ˵£ºjavascriptÖеÄÑ­»·±»×èÈûÁË£¬Ã»ÓÐÍê³É²»»á´¥·¢Èκζ«Î÷£¬Ñ­»·½øÐеÄͬʱ×èÈûÁËÆäËü²Ù×÷µÄ½øÐС£

Çë¸÷λ°ïæ½âÊÍÏ£¬À§»ó
window.loaded() Õâ¾ä»°ºÃÏñÊÇ´íÁË¡£ËùÒÔ³ÌÐòÔËÐе½ÕâÀï¾Í²»ÍùÏÂÔËÐÐÁË£¬µ«ÊÇÕâ¾ä»°Ö®Ç°µÄ¶¼»áÕý³£ÔËÐУ¬jsºÃÏñÒ²ÊǽâÊÍÐͽű¾ÓïÑÔ¡£

ÊÇÒ»¾äÒ»¾ä½âÊÍÔËÐеģ¬jsµÄÒì²½ÎÒµÄÀí½âÊÇ Ê¼þ¼¤»îº¯ÊýÖ®¼äµÄÒì²½£¬º¯ÊýºÍº¯ÊýÖ®¼äµÄÒì²½£¬ÎÒÔÚдajaxµÄʱºò »Øµ÷º¯ÊýºÍ·¢ËÍÇëÇóµÄº¯ÊýÖ®¼ä¾ÍÊÇÒì²½µÄ¡£

Òì²½ºÍͬ²½µÄ¸ÅÄîÓ¦¸ÃÓ¦¸ÃÃ÷ȷһϣ¬Ê²Ã´ÊÇÒì²½£¬Ê²Ã´ÊÇͬ²½¡£³ÌÐòÀïËù˵µÄÒì²½ºÃÏñºÍÄã×Ô¼ºÀí½âµÄÒì²½¸ÅÄͬ¡£

³ÌÐòÀïµÄÒì²½»úÖÆ£¬ÀýÈ磺a1() ¡¢ a2() £¬Á½¸öº¯Êý¡£a1()Ö´ÐеÄʱºò£¬a2()Ò²¿ÉÒÔÖ´ÐС£Ò²¾ÍÊÇ˵ÄãÔÚÒ³ÃæÖÐͨ¹ýÒ»¸ö°´Å¥¼¤»îa1()º¯ÊýÔËÐÐʱ£¬ÔÚa1()»¹Ã»ÓÐÔËÐÐÍ꣬ÄãÔÚͨ¹ýÁíÒ»¸ö°´Å¥¼¤»îa2()£¬ÈÃa2()Ò²Ö´ÐС£ÕâÊÇÒì²½¡£

¶ø²»ÊÇÄãËùÀí½âµÄ£¬
while ( ! window.loaded() ) { } Õâ¾ä»°ÔËÐеÄʱºò»¹Ã»ÓÐÔËÐÐÍ꣬ËüµÄÏÂÒ»¾ä»°
document.getElementById(¡°body¡±).style.border = "1px solid #000";Ò²¼ÌÐøÖ´ÐС£ÕâÑùÀí½âÊÇ´íÎóµ


Ïà¹ØÎÊ´ð£º

JavaScriptÓÎÏ·ÂêÀöÒ½ÉúDr MarioʵÏÖÔ­Àí

ÔںܾúܾÃÒÔÇ°£¬ÎÒÃÇÕâЩ80ºóµÄСÅóÓÑÖÕÓÚÍæÉÏÁË×Ô¼ºµÄС°ÔÍõÓÎÏ·»ú£¬³¬¼¶ÂêÀö£¬ÂêÀöÒ½Éú£¬Ñ©ÈËÐֵܣ¬Öî¶à¾­µäÓÎÏ·ÈÃÈËÎÞ·¨Íü»³£¬³ÉΪһ¸öÐĽᣡ

ÔÚÍê³ÉÁ˶íÂÞ˹·½¿éºó£¬ÕâÊÇÎÒдµÄÓÖÒ»¸öJavaScriptÓÎÏ·£¬Âê ......

µã»÷javascriptµ¯³ö¶Ô»°¿òµÄÈ·¶¨ÈÃËü¹Ø±ÕÒ³Ã棿

ÇëÎÊÔõô ÔÚµ¯³öµÄ¶Ô»°¿ò µãÈ·¶¨ ¹Ø±Õµ±Ç°µÄÒ³Ã棿 лл£¡
JScript code:
<script>
window.close ();
</script>

<script language="JavaScript">
function ......

javascriptµÄ¼òµ¥ÔËËã

function Place14a(myform)
{
  var str,i;
  str = "&nbsp;";
  if(!fnIsIntNum(myform.Place14_Num.value))
      myform.Place14_Num.value=1; ......

ÎÊÒ»¸öjavascript \uµÄÏÔʾÎÊÌâ

<script language="javascript">
var ww = "\u00e7\u00e8";
alert(ww);
</script>

ÎÒÐèÒªÏÂÃæÕâÑùµÄд·¨£¬È»ºóºÍÉÏÃæÊä³öµÄ½á¹ûÏàͬ¡£¡£

<script ......

ÍøÒ³ÖÆ×÷Javascript¾­µäС¼¼ÇÉ

ÿһÏÊÇJSÖеÄС¼¼ÇÉ£¬µ«Ê®·ÖµÄʵÓã¡
1.document.write(¡±"); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window-& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ