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

¹ØÓÚJavaScriptÖеıäÁ¿

 ±äÁ¿µÄÖ÷Òª×÷ÓÃÊÇ´æÈ¡Êý¾Ý¡¢Ìṩ´æ·ÅÐÅÏ¢µÄÈÝÆ÷¡£¶ÔÓÚ±äÁ¿±ØÐëÃ÷È·±äÁ¿µÄÃüÃû¡¢±äÁ¿µÄÀàÐÍ¡¢±äÁ¿µÄÉùÃ÷¼°±äÁ¿µÄ×÷ÓÃÓò¡£
¡¡±äÁ¿µÄÃüÃû
       JavaScriptÖеıäÁ¿ÃüÃûͬÆäËü¼ÆËã»úÓïÑԷdz£ÏàËÆ£¬ÕâÀïҪעÒâÒÔÏÂÁ½µã£º
           £¨1£©±ØÐëÊÇÒ»¸öÓÐЧµÄ±äÁ¿£¬¼´±äÁ¿ÒÔ×Öĸ¿ªÍ·£¬Öмä»òĩβ¿ÉÒÔ³öÏÖÊý×Ö»òÏ»®Ïߣ¬±äÁ¿Ãû³Æ²»ÄÜÓпոñ¡¢£¨£«£©¡¢£¨£­£©¡¢£¨£¬£©»òÆäËü·ûºÅ¡£
           £¨2£©²»ÄÜʹÓÃJavaScriptÖеĹؼü×Ö×÷Ϊ±äÁ¿¡£ 
¡¡±äÁ¿µÄÀàÐÍ
       ÔÚJavaScriptÖУ¬±äÁ¿¿ÉÒÔÓÃÃüÁîVar×÷ÉùÃ÷:
           var mytest;    ¸ÃÀý×Ó¶¨ÒåÁËÒ»¸ömytest±äÁ¿¡£µ«Ã»Óи³ÓèËüµÄÖµ¡£
           Var mytest=”This is a book”£»    ¸ÃÀý×Ó¶¨ÒåÁËÒ»¸ömytest±äÁ¿, ͬʱ¸³ÓèÁËËüµÄÖµ¡£
       ÔÚJavaScriptÖУ¬±äÁ¿ÒÔ¿ÉÒÔ²»×÷ÉùÃ÷£¬¶øÔÚʹÓÃʱÔÙ¸ù¾ÝÊý¾ÝµÄÀàÐÍÀ´È·Æä±äÁ¿µÄÀàÐÍ¡£È磺
           x=100 £»y="125" £»xy= True £»cost=19.5µÈ£¬ÆäÖÐxÕûÊý£¬yΪ×Ö·û´®£¬xyΪ²¼¶ûÐÍ£¬costΪʵÐÍ¡£
¡¡±äÁ¿µÄÉùÃ÷¼°Æä×÷ÓÃÓò
       JavaScript±äÁ¿¿ÉÒÔÔÚʹÓÃÇ°ÏÈ×÷ÉùÃ÷£¬²¢¿É¸³Öµ¡£Í¨¹ýʹÓÃvar¹Ø¼ü×Ö¶Ô±äÁ¿×÷ÉùÃ÷¡£¶Ô±äÁ¿×÷ÉùÃ÷µÄ×î´óºÃ´¦¾ÍÊÇÄܼ°Ê±·¢ÏÖ´úÂëÖеĴíÎó£»ÒòΪJavaScriptÊDzÉÓö¯Ì¬±àÒëµÄ£¬¶ø¶¯Ì¬±àÒëÊDz»Ò×·¢ÏÖ´úÂëÖеĴíÎó£¬ÌرðÊDZäÁ¿ÃüÃûµÄ·½Ãæ¡£
¶ÔÓÚ±äÁ¿»¹ÓÐÒ»¸öÖØÒªÐÔ©¤©¤ÄǾÍÊDZäÁ¿µÄ×÷ÓÃÓò¡£ÔÚJavaScriptÖÐͬÑùÓÐÈ«¾Ö±äÁ¿ºÍ¾Ö²¿±äÁ¿¡£È«¾Ö±äÁ¿ÊǶ¨ÒåÔÚËùÓк¯ÊýÌåÖ®Í⣬Æä×÷Ó÷¶Î§ÊÇÕû¸öº¯Êý£»¶ø¾Ö²¿±äÁ¿ÊǶ¨ÒåÔÚº¯ÊýÌåÖ®ÄÚ£¬Ö»¶ÔÆä¸Ãº¯ÊýÊǿɼûµÄ£¬¶ø¶ÔÆäËüº¯ÊýÔòÊDz»¿É¼ûµÄ¡£


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

Google¿ªÔ´JavaScript¹¤¾ß Closure

Google¿ªÔ´ÁËÆäÄÚ²¿Ê¹ÓõÄJavaScript¿ª·¢¹¤¾ßClosure£¬Ï£Íû°ïÖúÍⲿ³ÌÐòÔ±¿ª·¢³öËٶȸü¿ìµÄWebÓ¦ÓóÌÐò¡£GoogleÈÏΪͨ¹ýÔÊÐí¿ª·¢ÕßʹÓÃGoogle×Ô¼ºËùÓõŤ¾ß£¬ËûÃDz»½ö¿ÉÒÔ´´Ôì³ö¸ü¿ìµÄ¸»WebÓ¦ÓóÌÐò£¬¶øÇÒÄÜÕæÕýÈÃWeb²åÉϳá°ò¡£Closure JavaScript±àÒëÆ÷ºÍ¿âÔø±»GoogleÓÃÓÚ¿ª·¢Gmail¡¢Google Docs¡¢Google MapsÒÔ¼°ÆäËüÓ¦Ó ......

Top 10 JavaScript Frameworks by Google

 À´×Ô£ºhttp://www.tripwiremagazine.com/tools/developer-toolbox/top-10-javascript-frameworks-by-google.html
Wed, Nov 11, 2009
Development
, Javascript
, Tools




JavaScript – an indispensable part for developing websites and web
pages, whether th ......

JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ£¨×ªÌù£©

 1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable

2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ

3. onpaste="return false&quo ......

javascript String2

javascriptÖÐÓÐÒ»ÖÖ·½·¨½Ð×ö·º»¯·½·¨£¬Ö¸ÄÇÖÖÔ­Éú¶ÔÏ󲻿ɱéÀúµÄÔ­ÐÍ·½·¨¡£ÈçArrayµÄpop£¬sliceµÈ¡£ÎÒÃDZØÐëÖªµÀËüÃǵÄÃû×Ö²ÅÄܵ÷ÓÃËü»òÕß°ÑËüÍÚ³öÀ´¡£¼ÙÈçÎÒÃÇÏëÉè¼ÆÒ»¸öÀ࣬ӵÓÐÓëStringͬÑùµÄ¹¦ÄÜ£¬ÎÒÃǾÍÓÐÕâÐèÒª¡£²»Èç·Å¿ªµã˵£¬ÎªÊ²Ã´ÒªÉè¼ÆÕâ¸öÀà°É£¬ÏÔÈ»String2µÄЧÂʲ»ÈçÔ­ÉúµÄ£¬µ«ÊÂÇé×ÜÒªÍùÁ½Ãæ¿´¡£ÕýÈçC#²»Èç¶þ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ