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

[´ÓjQuery¿´JavaScript]

jQueryƬ¶Î£º
/*!
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/
¡¡¡¡²é¿´ÈκÎÔ´Âëʱ£¬ÎÒÃÇͨ³£¶¼»á¿´µ½¿ªÆªµÄµØ·½»áÓÐÒ»¶Î½â˵£¬ËµÃ÷¸Ã¶Î»òÕ߸ÃÎļþÖеÄÔ´´úÂëµ½µ×¸ÉÁËʲôÊÂÇ飬²¢ÇÒÔÚ´úÂëµÄ×ÖÀïÐм䣬ÎÒÃÇÒ²¿ÉÒÔ¿´µ½ÕâЩ˵Ã÷´©²åÆäÖС£¶øÎªÁËÈÃÕâЩ˵Ã÷ÄÜ×ÔÓɵش©²å£¬JavaScript£¨ÒÔºóµÄÕ½ÚÈçûÓÐÌØ±ð˵Ã÷£¬Ìá¼°JavaScriptµÄµØ·½¶¼ÊÇ·¶Ö¸ËùÓÐä¯ÀÀÆ÷Ö§³ÖµÄJS£¬¶ø²»ÊÇÌØÖ¸NetscapeµÄÔ­°æ£©£¬ÌṩÁË×¢Ê͵ĻúÖÆ¡£ÕâÖÖ»úÖÆºÍÆäËû¸ß¼¶ÓïÑÔ»ù±¾ÉÏÊÇÒ»Öµġ£ÀýÈç±ê×¼µÄ×¢ÊÍÈçÏ£º
µ¥ÐÐ×¢ÊÍ
// ÒÔϵÄÿһÐж¼Êǵ¥ÐÐ×¢ÊÍ£¬ÄܳöÏÖ²»Ó°ÏìÎļþ½âÊ͵ıàÂëÄÚ×Ö·û
// ·Ç±àÂëÄÚ×Ö·û±ØÐë²»ÄÜÓ°Ïì½áÊø·û
// ·²ÊdzöÏÖÎı¾½áÊø·û£¬Ò²¾ÍÊÇÎÒÃǵĻسµ»»ÐÐʱ£¬JS½âÊÍÆ÷¾Í»á½«Æäµ±×÷×¢ÊͽáÊø
// ΪÁ˼õÉÙ³åͻͨ³£ÔÙ“//”ºó»á¼ÓÒ»¸ö¿Õ¸ñ
¶àÐÐ×¢ÊÍ
/*
* ÓÉб¸Ü“/”ºÍÐǺœ*”˳Ðò×éºÏ³É¶àÐÐ×¢ÊÍµÄÆðʼ·û
* ¶ø·´Ïò×éºÏÔòÊǶàÐÐ×¢Ê͵ÄÖÕ½á·û
* ͨ³£×¢ÊÍÕâ»á¼ÓÈë¸ü¶àµÄÐǺţ¨°üÕû¿é×¢ÊͰüΧ£©
* µ«ÕâÖ»ÊÇΪÁËÔĶÁÃÀ¹Û¶øÒÑ£¬²¢Ã»ÓÐʵÖÊ×÷ÓÃ
*/
¡¡¡¡¿´µ½ÒÔÉϵÄÀý×Ó£¬¿ÉÄÜÄã¾õµÃÕâЩ¶¼ÊǺÜdz°×µÄÎÊÌ⣬Ȼ¶ø£¬¾ÍÊÇÕâôdz°×µÄ¶«Î÷Ò²¿ÉÄÜ»áÄѵ¹È˵ġ£ÎÒÔø¾­ÔÚCSDNÉÏÓöµ½Ò»¸öÎÊÌ⣬¾ÍÊÇÒòΪעÊ͵Ä×Ö·û±àÂëÒýÆðµÄ¡£ÏêϸµÄÎÊÌâ¿ÉÒԲ鿴ÒÔÏÂÁ´½Ó£ºhttp://topic.csdn.net/u/20090616/19/5ff988e4-e45e-445d-830a-a9d9f3ab606c.html¡£ËùÒÔ£¬Èç¹ûijÌìÄãÓöµ½Ä³¶Î×Ô¼º±àдµÄ´úÂëÔËÐв»ÁË£¬µ«Ô´´úÂëÔõôҲ²é²»³ö´íÎóµÄʱºò£¬¿ÉÒÔ³¢ÊÔÒ»ÏÂÏȰÑËùÓÐ×¢ÊÍÈ¥µô¡££¨¹ØÓÚ×¢ÊÍ¿ìËÙÈ¥³ý£¬¿ÉÒÔÑ¡ÔñʹÓÃÍøÉÏÁ÷ÐеÄJSѹËõ¹¤¾ß£¬ÉÔºóÎÒÒ²½«·Å³ö×Ô¼º°æ±¾µÄѹËõ¹¤¾ß¡££©
¡¡¡¡³ý´ËÖ®Í⣬MicrosoftµÄIE»¹¶Ô´Ë¸ãÁ˵ãÌØÊ⻯——Ìõ¼þ×¢ÊÍ£¨condition comments£©¡£ÏÈ¿´Ò»ÏÂʾÀý£º// IEÖÐÆô¶¯Ìõ¼þ×¢Ê͵ķ½·¨ÈçÏ£º
//@ Ìõ¼þ±àÒëÓï¾ä
/*@ Ìõ¼þ±àÒëÓï¾ä @*/
// ¶ÔÓÚµ¥ÐеÄÌõ¼þ×¢ÊÍ£¬Ë«·´Ð±¸ÜºÍ@Ö®¼ä¿ÉÒÔ´æÔÚ¿Õ¸ñ¡£
/*@cc_on// ´ø@ºÅµÄcc_on´ú±íµÄÊÇÆô¶¯Ìõ¼þ±àÒë
// ´ø@ºÅµÄifºÍ´ø@ºÅµÄ_jscript·Ö±ðÊÇÌõ¼þÓï¾äºÍÄÚÖñäÁ¿
@if (@_jscript)
// ÒòΪÔÚ×¢ÊÍÖУ¬ËùÒÔÆäËûä¯ÀÀÆ÷²»»á±àÒëÒÔÏÂÓ


Ïà¹ØÎĵµ£º

100¶à¸ö³£ÓÃjavascriptÓï¾ä

1.document.write(""); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window->(navigator,screen,history,location,document)
5.µÃµ½±íµ¥ÖÐÔªËØµÄÃû³ÆºÍÖµ:document.getElementById("±íµ¥ÖÐÔªËØµÄID號").name(»òvalue)
6.Ò»¸öСдת´ ......

¿ú̽jQuery——ÃæÏò¹Ç»ÒJavaScript³ÌÐòÔ±

µ± jQuery ÔÚ2006Äê1ÔÂÏÖÉíʱ£¬¸øÎҵĵÚÒ»Ó¡Ïó£¬ÊÇÕâÍæÒâ¶ù¹¹ÔìµÃºÜ¾«Ã÷¡£»ùÓÚCSSÑ¡ÔñÆ÷£¨CSS selectors£©À´´òµãÒ»ÇУ¬Æä˼·Ï൱ÁéÇÉ£¨²Î¿¼getElementsBySelector£©¡£µ«Á´ºÐ¹¤Ê£¨chaining stuff£©¿´ÆðÀ´¸üÏñ¸öàåÍ·£¬²¢ÇÒÕûÌå¿´À´£¬jQuery¿âÌṩµÄ¹¦Äܲ¢²»Äܸ²¸ÇËùÓлù´¡ÐԵĶ«Î÷¡£Òò´ËÎҶ϶¨£¬jQueryÖ»»áê¼»¨Ò»ÏÖ¡£
¼¸¸ö ......

[´ÓjQuery¿´JavaScript]

¡¡¡¡Ê²Ã´ÊÇJavaScript£¿ÏàÐÅËæ±ã°Ù¶ÈGoogleһ϶¼ÄÜÕÒµ½Ò»´ó¶ÑµÄ¶¨Òå½âÊÍ¡£¶øÔÚÎÒµÄÀí½âÖУ¬JavaScript¾ÍÊÇÒ»ÖÖ¿Í»§¶ËµÄ½Å±¾ÓïÑÔ£¬ÓÃÓÚ´¦ÀíÒ³ÃæÊý¾ÝÂß¼­ºÍÓû§ÌåÑé£¨ÍøÒ³ÌØÐ§£©¡£Êµ¼ÊÉÏ£¬JavaScript²¢²»½ö½öÖ»ÄÜÓÃÓÚ¿Í»§¶Ë£¬Ëü»¹ÄÜÓÃÓÚ·þÎñÆ÷¶Ë±à³Ì£¬µäÐ͵ÄÀý×Ó¾ÍÊÇMozilla Rhino¡£Mozilla RhinoÊÇÒ»¸ö´¿JavaµÄ¿ªÔ´µÄJavaSc ......

³£ÓÃJavaScript´úÂë

         // ¹Ø±Õ´°¿Úʼþ
        function closeWindow(){
            if(event.clientX>document.body.clientWidth) {
            & ......

ÉîÈëÈÏʶjavascriptÖеÄevalº¯Êý

 À´Ô´£ºhttp://wanyij.blog.51cto.com/46570/43794
·¢ÏÖΪ±¾ÎÄÆðÒ»¸öºÏÊʵıêÌ⻹²»ÊÇÄÇôÈÝÒ×£¬ºÇºÇ£¬ËùÒÔÔÚ´ËÏÈ˵Ã÷ϱ¾ÎĵÄÁ½¸öÄ¿µÄ£º
£¨1£©½éÉÜjavascriptÖеÄevalº¯ÊýµÄÓ÷¨
£¨2£©ÈçºÎÔÚº¯ÊýÄÚÖ´ÐÐÈ«¾Ö´úÂë
►ÏÈÀ´ËµevalµÄÓ÷¨£¬ÄÚÈݱȽϼòµ¥£¬ÊìϤµÄ¿ÉÒÔÌø¹ý¡£
evalº¯Êý½ÓÊÕÒ»¸ö²ÎÊýs£¬Èç¹ûs²»ÊÇ×Ö·û´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ