Ïê½âFirefox 3.5µÄÐÂJavaScriptÒýÇæ
±¾ÎÄ×÷ÕßΪDavid
Mandelin£¬©¤©¤Mozilla JavaScriptÍŶӹ¤×÷ÈËÔ±¡£
Firefox 3.5ÓµÓÐÒ»¸öȫеÄJavaScriptÒýÇ棬½Ð×öTraceMonkey£¬ÔÚ¸ÃÒýÇæÉÏÅÜJSÓ¦ÓÃÒª±ÈFirefox
3¿ìµ½3-4±¶£¬´Ó¶øΪÏÖÓеÄÍøÂçÓ¦ÓüÓËÙ¡£ÕâƪÎÄÕ´óÖµÄÃèÊöÒ»ÏÂÔÚTraceMonkeyÖаüÀ¨µÄÖØÒª²¿¼þ£¬ÒÔ¼°ËûÃÇÊÇÈçºÎ¼ÓËÙJavaScriptµÄ¡£Í¬Ñù£¬ÔÚÁ˽âÕâЩ֮ºó
£¬ÄãÒ²¾ÍÄÜÖªµÀʲôÑùµÄÍøÂçÓ¦ÓÃͨ¹ýTraceMonkeyÄܹ»»ñµÃ×î´óµÄÌáËÙ£¬ÒÔ¼°ÔõôÑùÀ´Ð´ÄúµÄ³ÌÐò»ñµÃ¸ü´óµÄÐÔÄÜÌá¸ß¡£
ΪʲôÌáËÙJSºÜÄÑ£º¶¯Ì¬ÀàÐÍ
ÀàËÆÓÚJavaScriptºÍPythonÕâÑùµÄ¸ß¼¶¶¯Ì¬ÓïÑÔͨ³£Ê¹µÃ±à³ÌЧÂʷdz£¸ß£¬µ«ÊÇͬÀàËÆJava»òÕßCÕâÑùµÄ¾²Ì¬ÓïÑÔÏà±È£¬ËûÃÇÒªÂýһЩ¡£°´ÕÕ¾ÑéÀ´Ëµ£¬Ò»¸öJS³ÌÐòͨ³£Òª±ÈͬµÈµÄJava³ÌÐòÂý10±¶¡£
ÏñJSÕâÑùµÄ¶¯Ì¬ÓïÑÔ±ÈÏñJava»òÕßCÕâÑùµÄ¾²Ì¬ÓïÑÔÂýÖ÷ÒªÓÐÁ½¸öÔÒò¡£µÚÒ»¸öÔÒòÊÇÔÚ¶¯Ì¬ÓïÑÔÖУ¬Í¨³£²»Ì«ÈÝÒ×ÔÚÖ´ÐÐ֮ǰ֪µÀÖµµÄÀàÐÍÐÅÏ¢¡£Òò´Ë£¬ÓïÑÔ±¾Éí±ØÐëʹÓÃÒ»¸öͨÓõĸñʽ´æ´¢ËùÓеÄÖµ²¢ÇÒʹÓÃͨÓõIJÙ×÷À´´¦ÀíËûÃÇ¡£
Ïà·´£¬ÔÚJavaÖУ¬³ÌÐòÔ±ÉùÃ÷±äÁ¿ºÍ·½·¨µÄÀàÐÍ£¬±àÒëÆ÷¿ÉÒÔÔÚÔËÐÐ֮ǰ¾ÍÖªµÀÕâЩֵµÄÀàÐÍ¡£±àÒëÆ÷¿ÉÒÔʹÓÃÌض¨µÄ¸ñʽºÍ²Ù×÷À´´¦ÀíÕâЩֵ£¬¶øÕâ¸ö¹ý³ÌÒª±ÈͨÓõĸñʽºÍ²Ù×÷¿ìºÜ¶à¡£ÏÂÃ棬ÎÒ»á°ÑÕâÀà²Ù×÷½Ð×öÀàÐÍÌض¨´¦Àí¡£
¶¯Ì¬ÓïÑÔÔËÐÐÂýµÄµÚ¶þ¸öÔÒòÊÇ£¬¶¯Ì¬½Å±¾ÓïÑÔͨ³£ÊµÏÖΪ½âÊÍÆ÷£¬Ò²¾ÍÊÇÓɽâÊÍÆ÷Ö´ÐУ»¶ø¾²Ì¬ÓïÑÔͨ³£±»±àÒëΪÔÉú´úÂë¡£½âÊÍÆ÷¿ÉÒÔºÜÈÝÒ׵Ĺ¹Ô죬µ«ÊÇËûÃÇÐèÒª¶îÍâµÄÔËÐÐʱ¼äÀ´´¦Àí¸ú×ÙËûÃǵÄÄÚ²¿×´Ì¬¡£ÏñJavaÕâÑùµÄÓïÑԻᱻ±àÒë³É»úÆ÷ÓïÑÔ£¬»ù±¾ÉÏÊDz»ÐèÒªÄÚ²¿ÔËÐÐ״̬¸ú×ٵġ£
ÈÃÎÒÃÇÓÃÒ»ÕÅͼƬÀ´ÃèÊöµÄ¸ü¾ßÌå¡£ÕâÀïÓÐÒ»¸ö¼òµ¥µÄ¼Ó·¨µÄ·Ö½â¶¯×÷ʾÒâͼ£¬ÎÒÃÇÀ´¼ÆËãһϣºa +
b£¬ÕâÀïaºÍb¾ùΪÕûÊý¡£Ê×ÏÈ£¬ÎÒÃǺöÂÔ×îÓұߵÄÖù״ͼ£¬¼¯ÖÐÔÚFirefox
3µÄJavaScript½âÊÍÆ÷ºÍJava
JITÖ´ÐÐЧÂʵıȽÏÉÏ¡£Ã¿¸ö×ÝÁж¼±íʾÔÚijÖÖÓïÑÔÉÏÕâ¸ö¼Ó·¨ÔËËãÒª×öµÄ·Ö½â¶¯×÷¡£Ê±¼ä´ÓÉϵ½Ï½øÐУ¬Ã¿¸ö²»Í¬ÑÕÉ«µÄºÐ×Ӹ߶Ȼù±¾±íʾ½øÐи÷ֽ⶯×÷ÐèÒªµÄʱ¼ä¡£
ÔÚÖм䣬Java¼òµ¥µÄÔËÐÐÒ»Ìõ»úÆ÷Ö¸Á“¼Ó”ÃüÁÔËÐÐʱ¼äΪT£¨Ò»¸ö´¦ÀíÆ÷ÖÜÆÚ£©¡£ÒòΪJava±àÒëÆ÷Ô¤ÏÈÖªµÀÔËËãֵΪ±ê×¼µÄ»úÆ÷ÕûÊýÀàÐÍ£¬Ëý¿ÉÒÔÖ±½ÓʹÓñê×¼µÄÕûÊý¼Ó·¨»úÆ÷Ö¸Áî¡£ÍêÁË¡£
ÔÚ×ó±ß£¬SpiderMonkey£¨FF3ÖеÄJS½âÊÍÆ÷£©ÐèÒª´ó¸Å40¸öT¡£×ØÉ«²¿·ÖµÄºÐ×Ó²¿·ÖΪÕû¸ö½âÊÍÆ÷µÄ¿ªÏú£º½âÊÍÆ÷ÐèÒª¶ÁÈ¡¼Ó²Ù×÷£¬È»ºóÌøµ½½âÊÍÆ÷µÄͨÓüӲÙ×÷´úÂ벿·Ö¡£éÙÉ«µÄºÐ×Ó²¿·Ö±íʾÓÉÓÚ½âÊÍÆ÷²»Öªµ
Ïà¹ØÎĵµ£º
JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖв»¿É»òȱµÄ¶«Î÷£¬²»¹ÜÊÇÒ»¸ö¼òµ¥µÄÍøÒ³»¹ÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²²»¹ÜÄãÊǸßÊÖ»¹ÊDzËÄñ£¬Èç½ñ JavaScript
¿âÔ½À´Ô½Ç¿´ó£¬¿ÉÒÔʤÈÎÐí¶à¸´ÔӵŤ×÷£¬È»¶øͬʱ£¬ÈËÃÇÔÚÖÚ¶à JavaScript ¿âÃæÇ°ÓÖ¾õµÃÎÞËùÊÊ´Ó£¬±¾ÎÄ£¬ÎÒÃǽ«Ê¹Óà Google ËÑË÷³öÅÅÃûÇ° 10 λµÄ
JavaScript ¿â£¬²¢¶ÔËüÃÇÖðÒ» ......
JavaScriptÊÇÓÉNetscape¿ª·¢µÄ¹ã·ºÓÃÓÚÊý°ÙÍòÍøÒ³ºÍ·þÎñÆ÷Ó¦ÓóÌÐòµÄ¶ÔÏó½Å±¾ÓïÑÔ¡£NetscapeµÄJavaScriptÊÇECMA-262µÚÈý°æ(ECMAScript)±ê×¼½Å±¾ÓïÑÔµÄÒ»¸ö³¬¼¯£¬Ö»Óë·¢Ðбê×¼ÓÐЩÐí²»Í¬£¨mild differences£©¡£
Óë¹ã·ºµÄÎó½âÏà·´£¬JavaScript²»ÊÇ“½âÊÍÐ͵ÄJava”¡£×¼È·µÄ˵£¨In a nutshell£©£¬JavaScriptÊÇÖ§³Ö ......
//¹ã¸æÀ¸
function MoveLeftLayer(layerName) {
var x = 5;
var y = 100;// ×ó²à¹ã¸æ¾àÀëÒ³Ê׸߶È
var diff = (document.body.scrollTop + y - document.all.AdLayer1.style.posTop)*.40;
var y = document.body.scrollTop + y - diff;
eval("document.all." + layerName + ".style.posTop = parseInt(y)");
e ......
//״̬À¸·ÉÈëÎÄ×Ö
function statusMessageObject(p,d) { <!--????????????-->
this.msg = MESSAGE
this.out = " "
this.pos = POSITION
this.delay = DELAY
this.i = 0
this.reset = clearMessage
}
function clearMessage( ......
Ò³ÃæÖÐÓÐÒ»¸ötable°üº¬Á½ÁУ¬Êý¾ÝÓɺǫ́Éú³É£¬ÐÐÊý²»¶¨£º£¨Èçͼ£©
ÔʼÊý¾Ý£º
ÏÖÔÚͨ¹ýjavascript½øÐвéѯ£¬Ð§¹ûÈçÏÂÈýͼ£º
¿ªÊ¼²éѯ
²éѯÖÐ......
²éѯµÃµ½µÄ×Ôºó½á¹û
JAVASCRIPT´úÂ룺
JS´úÂë
<script language="javascript" tpe="text/javascript">
function searchMateria ......