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

JavaScript¼ò½é

JavaScript         ECMAScriptÊÇÕâ¸ö½Å±¾ÓïÑԵıê×¼»¯°æ±¾¡£ ScriptÔªËØ£º             ÔÚHTML´úÂëÖÐÌí¼ÓJavaScript´úÂë             Ò²¿ÉÒ԰ѽű¾´úÂë·ÅÔÚÒ»¸öµ¥¶ÀµÄ.jsÎļþÖУ¬ È»ºó£¬ÔÚscript¿éÖÐÓÃsrcÊôÐÔÒýÓÃÕâ¸öµ¥¶ÀµÄÎļþ£º ±äÁ¿µÄÉùÃ÷£º             ±äÁ¿ÓÃvar¹Ø¼ü×ÖÉùÃ÷£¨µ«Õâ¸övarÓëC#3.0ÖеÄÍêÈ«²»Í¬£©¡£             JavaScript²»ÊÇÇ¿ÀàÐÍ»¯ÓïÑÔ£¬varÉùÃ÷µÄ±äÁ¿¿ÉÒÔÊÇÈκÎÀàÐÍ£¬±ÈÈ磺             var x=3;             x="text";             x=new Object();             x.FistName = "Tom";             ±äÁ¿Ê±¶¯Ì¬´´½¨ ºÍ ¸³ÖµµÄ¡£             Ò²¿ÉÒÔÔÚÒ»ÐдúÂëÉÏÉùÃ÷ºÍ³õʼ»¯¶ÔÏó£º             var p = {"FirstName":"Tom", "LastName": Turbo };             ·ÃÎÊÊôÐÔÖµ£º             var f = p.FirstName;             var l = p["LastName"]; ¶¨Ò庯Êý£º             º¯ÊýÓÃfunction¹Ø¼ü×Ö¶¨Òå function foo(arg1, arg2)             {    ......    }             Ò²¿ÉÒÔÓÃFunction¶ÔÏóÀ´¶¨ÒåÒýÓú¯ÊýµÄ±äÁ¿¡£ var add = new Function("x","y","return x + y");   //×îºóÒ»¸ö²ÎÊý¶¨ÒåÁ˺¯ÊýµÄÖ´Ðз½Ê½


Ïà¹ØÎĵµ£º

Àí½âjavascript closures ±Õ°ü(¶ÁÊé±Ê¼Ç)

 Ê²Ã´ÊDZհü(closures):
 ±Õ°ü¾ÍÊÇÄÚ²¿º¯Êýͨ¹ýijÖÖ·½Ê½Ê¹Æä¿É¼û·¶Î§³¬³öÁËÆ䶨ÒåµÄ·¶Î§,Õâ¾Í²úÉúÁËÒ»¸öÔÚÆ䶨Ò巶ΧÄڵıհü.
 
 ÕâÊÇÎÒÀí½âºóµÄÒ»¸ö¶¨Òå,ºÇºÇ!ºÜ»Þɬ°É!²»¹ýû¹Øϵ,¿ÉÒÔÏÈ¿´¿´ÏÂÃæµÄ½²½â.
 
 
Ò» ÄÚ²¿º¯Êý(inner function)
javascriptÊÇÖ§³ÖÄÚ²¿º¯ÊýÉêÃ÷(inner func ......

JavascriptË¢ÐÂÒ³Ãæ

1 history.go(0)
2 location.reload()
3 location=location
4 location.assign(location)
5 document.execCommand('Refresh')
6 window.navigate(location)
7 location.replace(location)
8 document.URL=location.href
×Ô¶¯Ë¢ÐÂÒ³ÃæµÄ·½·¨:
1¡¢×Ô¶¯Ë¢Ð£º
<script type="text/javascript">setInt ......

javascript event ʼþ½âÎö

 ÃèÊö event´ú±íʼþµÄ״̬£¬ÀýÈç´¥·¢event¶ÔÏóµÄÔªËØ¡¢Êó±êµÄλÖü°×´Ì¬¡¢°´ÏµļüµÈµÈ¡£ event¶ÔÏóÖ»ÔÚʼþ·¢ÉúµÄ¹ý³ÌÖвÅÓÐЧ¡£  eventµÄijЩÊôÐÔÖ»¶ÔÌض¨µÄʼþÓÐÒâÒå¡£±ÈÈ磬fromElement ºÍ toElement ÊôÐÔÖ»¶Ô onmouseover ºÍ  onmouseout ʼþÓÐÒâÒå¡£ Àý×Ó ÏÂÃæµÄÀý×Ó¼ì²éÊó±êÊÇ·ñÔÚÁ´½ÓÉ ......

¿ªÔ´JavascriptͼÐοâ[ת]

Ô­£ºhttp://www.cnblogs.com/webgis8/articles/1516639.html
¼¸¸ö¿ªÔ´JavascriptͼÐοâ

 ÒòΪGoogle MapÏîÄ¿µÄÐèÒª,×î½üÒ»Ö±ÔÚÑ°ÇóÏà¹ØµÄJavascriptͼÐοâ,ÔÚ³¢ÊÔÓÃGoogle Map
APIÌṩµÄjavascript½Ó¿Ú»æͼʱ·¢ÏÖÆäЧ¹ûºÍЧÂʶ¼²»Ì«ÀíÏë,ͬʱҲÓùýjsgraphics¿â,Ò²²»ÊǺܺÃ.ÓÖÔÚÍøÉÏÕÒµ½ÁËÏÂÃ漸¸ö.
mxGraph
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ