Ò»´Î¾ªÏÕµÄjavascript¾Àú£¬º¹£¬ÏÖÔÚÏëÏ붼ºóÅÂ
ÔÚ¿ª·¢Ò»¸ö½É·Ñ½»Ò×ʱ£¬ÏÈ·¢ËͲéѯÇëÇóµ½ÏµÍ³A£¬ÏµÍ³A·µ»ØÒ»¸ö×Ö·û´®¸ñʽµÄÇ··Ñ½ð¶î£¬ÒòΪÊǶ¨³¤µÄ£¬ËùÒÔ¶¼ÊÇÇ°²¹0£¬±¾À´ÐèÒªÏÈ×ö´¦ÀíµÄ£¬µ«ÊÇÓÉÓÚ²éѯ½á¹ûÈç¹ûÊÇÇ··ÑµÄ£¬¿Í»§·¢Æð½É·Ñ½»Ò×ʱ£¬»áË͸øϵͳBµÄ¸ñʽ£¬ÓëϵͳA·µ»ØµÄÊÇÒ»ÑùµÄ£¬Òò´Ë¾ÍÔÑù±£´æÈ»ºóÉÏËÍ£¬¿ÉÊÇÔÚϵͳ²âÊÔʱ£¬È´·¢ÏÖÁËÒ»¸öÆæ¹ÖµÄÏÖÏó£¬ÏµÍ³A·µ»ØµÄ²éѯ½á¹ûÖУ¬Ç··Ñ½ð¶îÊÇ¡°00000100¡±£¬ÉÏËͺó£¬È´±ä³É¡°00000064¡±ÁË£¬½ð¶îÊÇÒÔ·ÖΪµ¥Î»µÄ£¬ËùÒÔÇ··Ñ1ÔªµÄ£¬±ä³ÉÉÏËͽɷÑʱÊÇ0.64ÔªÁË£¬¸Õ¿ªÊ¼Ò»Ö±²»µÃÆä½â£¬ºóÃæ²ÅÖªµÀÕâÊÇjavascriptµÄĬÈÏ´¦Àí¸ãµÄ¹í¡£ ³ÌÐòÖн«¡°00000100¡±×÷Ϊ²ÎÊý´«µÝ¸øÒ»¸öº¯Êý£¬ÔÚº¯ÊýÖдòÓ¡³öÀ´Õâ¸ö²ÎÊýµÄÖµ£¬ÒѾ±ä³É8µÄƽ·½£¬64ÁË£¬ËùÒÔ×Ö·û´®ÔÚjavascriptÖд«µÝʱ£¬»áĬÈϱ»×ª»»³ÉÕûÊý´¦Àí£¬Õâ¾ÍÊǵ¼ÖÂÎÊÌâµÄ¸ù±¾ÔÒò¡£Õâ´ÎÎÊÌâµÃ³öµÄ½ÌѵÊÇ£¬²»ÒªÍµÀÁ£¬±ØÐë¶ÔÊý¾Ý½øÐкÏÀíµÄת»»ºóÔÙÐд¦Àí¡£
Ïà¹ØÎĵµ£º
Èç¹ûÄú»¹Ã»ÓÐÔĶÁ¡¶JavaScriptµ÷ÊÔ¼¼ÇÉÖ®£º¿ìËÙ¶¨Î»¡·£¬½¨ÒéÏÈ¿´¿´ÄÇƪ¡£Ëµ²»¶¨£¬ÓÿìËÙ¶¨Î»¾ÍÄܽâ¾öÎÊÌâÁË£¬ºÇºÇ¡£Õâ´ÎÎÒ»á×ܽá¼Ç¼һ϶ϵãµ÷ÊԵıʼǣ¬Ï£ÍûÒ²¶Ô´ó¼ÒÓÐÓ㬻¶Ó²¹³ä½»Á÷£¡
Ê×ÏÈ£¬ÔÚ¸÷¸öä¯ÀÀÆ÷ÖУ¬¶Ïµãµ÷ÊÔÖ§³ÖµÄ×îºÃµÄµ±È»ÊÇFirefox£¬Firefox²»½ö¿ÉÒÔʹÓÃFirebugµ÷ÊÔÒ³Ãæjs½Å±¾£¬»¹¿ÉÒÔÓø߼¶µ÷ÊÔ¹¤¾ßÀ ......
ÔÎijö´¦: http://www.dnew.cn/post/196.htm
ÏÈ¿´ÏÂÏÂÃ漸ÖÖд·¨
1.function f(x){return x*x;};f(x);
2.(function(x){return x*x;})(x);
3.(function(x){return x*x;}(x));
µÚÒ»ÖÖÎÒÃÇÓ¦¸Ã¶¼ºÜÊìϤÁË£¬ÕâÊÇÎÒÃǾ³£Ê¹ÓõÄд·¨¡£µÚ¶þµÚÈýÖÖ¶¼ÊÇÄäÃûº¯ÊýµÄд·¨¡£
------------------------------------------------ ......
//»ñÈ¡µ±Ç°Îļþȫ·¾¶
<script language="javascript">
alert(window.location.href);
alert(window.location);
alert(location.href);
alert(parent.location.href);
alert(top.location.href);
alert(document.location.href);
alert(document.URL);
</scri ......
×Ô´Ó Google ÍƳöº¬ V8 JavaScript ÒýÇæµÄ Chrome ÒÔÀ´£¬¹«ÖÚ¶Ô JavaScript
ÒýÇæÖ´ÐÐЧÂʵÄθ¿ÚÓÖÒ»´Î±»Ìá¸ß£¬ÖÚ¶àä¯ÀÀÆ÷µÄ¿ª·¢ÕßÃǽʾ¡ÄÔÖÌáÉýËûÃÇµÄ JavaScript ÐÔÄÜ£¬Opera ×îеÄ10.50 °æµÄ Carakan
ÒýÇæ¾Ý³ÆÒѾ³¬¹ý V8£¬¶ø Firefox µÄ¿ª·¢ÕßÃÇÒ²²»¸ÊʾÈõ¡£
×î½üÉý¼¶µ½ Firefox 3.6 µÄÓû§ÒѾ·¢ÏÖËûÃÇµÄ Java ......
Òý×Ó
±à³ÌÊÀ½çÀïÖ»´æÔÚÁ½ÖÖ»ù±¾ÔªËØ£¬Ò»¸öÊÇÊý¾Ý£¬Ò»¸öÊÇ´úÂë¡£±à³ÌÊÀ½ç¾ÍÊÇÔÚÊý¾ÝºÍ´úÂëǧ˿ÍòÂƵľÀ²øÖгÊÏÖ³öÎÞÏÞµÄÉú»úºÍ»îÁ¦¡£
Êý¾ÝÌìÉú¾ÍÊÇÎľ²µÄ£¬×ÜÏë±£³Ö×Ô¼º¹ÌÓеı¾É«£»¶ø´úÂëÈ´ÌìÉú»îÆã¬×ÜÏë¸Ä±äÕâ¸öÊÀ½ç¡£
Äã¿´£¬Êý¾Ý´úÂë¼äµÄ¹ØϵÓëÎïÖÊÄÜÁ¿¼äµÄ¹Ø ......