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

JavaScript¾ÍÕâô»ØÊ (JS»ù´¡ÖªÊ¶ÕûÀí)

JavaScript¾ÍÕâô»ØÊ (JS»ù´¡ÖªÊ¶ÕûÀí)
1 ´´½¨½Å±¾¿é  
1: <script language=”JavaScript”>  
2: JavaScript code goes
here  
3: </script>
2 Òþ²Ø½Å±¾´úÂë  
1: <script language=”JavaScript”>  
2: <!–  
3:
document.write(“Hello”);  
4: // –>  
5: </script>
ÔÚ²»Ö§³ÖJavaScriptµÄä¯ÀÀÆ÷Öн«²»Ö´ÐÐÏà¹Ø´úÂë  
3 ä¯ÀÀÆ÷²»Ö§³ÖµÄʱºòÏÔʾ  
1: <noscript>  
2: Hello to the non-JavaScript browser.  
3:
</noscript>
4 Á´½ÓÍⲿ½Å±¾Îļþ  
1: <script language=”JavaScript”
src=”/”filename.js””></script>
5 ×¢Êͽű¾  
1: // This is a comment  
2: document.write(“Hello”); // This is a
comment  
3: /*  
4: All of this  
5: is a comment  
6: */
6 Êä³öµ½ä¯ÀÀÆ÷  
1: document.write(“<strong>Hello</strong>”);
7 ¶¨Òå±äÁ¿  
1: var myVariable = “some value”;
8 ×Ö·û´®Ïà¼Ó  
1: var myString = “String1” + “String2”;
9 ×Ö·û´®ËÑË÷  
1: <script language=”JavaScript”>  
2: <!–  
3: var myVariable
= “Hello there”;  
4: var therePlace = myVariable.search(“there”);  
5:
document.write(therePlace);  
6: // –>  
7: </script>
10 ×Ö·û´®Ìæ»»  
1: thisVar.replace(“Monday”,”Friday”);
11 ¸ñʽ»¯×Ö´®  
1: <script language=”JavaScript”>  
2: <!–  
3: var myVariable
= “Hello there”;  
4: document.write(myVariable.big() +
“<br>”);  
5: document.write(myVariable.blink() +


Ïà¹ØÎĵµ£º

javascriptЧÂʾ­Ñé̸(Ò»)

±¾ÎÄÖ÷ÒªÊdzöÓÚÓÐÅóÓÑʹÓÃÎÒÔ­À´Ð´µÄautocompleteµÄJS¿Ø¼þ¡£µ±Êý¾ÝÁ¿´óµÄʱºò£¬»á³öÏÖЧÂʼ«ÆäÂýµÄÇé¿ö£¬ÎÒÔÚÕâ¶Îʱ¼ä×ö³öµÄһЩ²âÊÔÒ²¼°Ò»Ð©¾­Ñ飬Óë´ó¼Ò·ÖÏí£¬Èç¹ûÓдíµÄµØ·½£¬»¹ÇëÖ¸³ö¡£
¾­¹ý²âÊÔ£¬ÎÒÃǻᷢÏÖÈçϵÄÇé¿ö»òÕß˵µÄ½áÂÛ£¬Èç¹ûÄúµÄ²âÊÔ½á¹ûÓëÎҵIJ»·û£¬Çë˵Ã÷Ô­Òò£¬ÒÔ±ãÏ໥ѧϰ¡£
1£©µ±Ò»¸ö½Ï´óµÄHTML×Ö· ......

javascript ¸¸´°¿Ú ×Ó´°¿Ú

¸¸´°¿ÚÖÐÓÐÈýÖÖ·½Ê½´ò¿ª×Ó´°¿Ú£º
1£º
window.open(URL,windowName,parameters);
2:
alert(""); //µ¯³öÐÅÏ¢Ìáʾ¶Ô»°¿ò
confirm(""); //µ¯³öÐÅϢȷÈ϶Ի°¿ò
prompt(""); //¾ßÓн»»¥ÐÔÖʵĶԻ°¿ò
3:
//´´½¨Ä£Ì¬Äã¶Ô»°¿ò
window.showModalDialog(sURL,vArguments,sFeatures)
//´´½¨·Çģ̬¶Ô»°¿ò
window.showM ......

javascriptÎÞ·ì¹ö¶¯Ô´Âë

MarqueeͼƬÎÞ·ì¹ö¶¯¹Ø¼ü´Ê£º Marquee                                          
ÏÈÁ˽âһϠ......

javascript ¿çä¯ÀÀÆ÷µÄʼþϵͳ4

ÉÏ´Î˵µ½ÎÒÃÇÔÚÎÞ¾ú»·¾³ÖÐÉè¼ÆÁËÒ»¸öʼþ´úÀíº¯Êý£¬µ«ÐÔÄÜÊǸöÎÊÌ⣬½â¾öËüÎÒÃÇÐèÒª»º´æ½Úµã¼¯ºÏ£¬·¢Ïֽڵ㼯ºÏ²»×ãÒÔÓ¦¶ÔÐÂÇé¿öʱ£¬ÔÙÌæ»»Õâ¸ö½Úµã¼¯ºÏ£¬ÖØпªÊ¼Æ¥Åä¡£ÏÂÃæÊÇеķ½°¸£º

var delegate = function(selector,type,callback){
var els = $(selector);
addEvent(document,t ......

×î½ü×Ô¼ºÔÚдjavascript/html/cssµÄÊ÷¿Ø¼þ

    Íê³ÉÒÔϲ¿·Ö£º
    1. Ê÷¿ÉÒÔ½ÓÊÜsingleXml¸ñʽºÍjsonÒÔ¼°jsonarray¸ñʽµÄÊý¾Ý£»
    2. ¸´Ñ¡¿ò¹´Ñ¡ºÍÕÛµþ×Ó½ÚµãµÄÂß¼­ÓÃdivǶÌ×À´ÊµÏÖ,ЧÂʸü¸ß;²¢ÌṩÁË¿ìËÙ»­Ê÷µÄ·½·¨;(´æÔÚbug:¿ìËÙ»­Ê÷ЧÂʲ¢²»¸ß,divǶÌ×ÓÐÎÊÌâ);
    3.Ôö¼ÓÊ÷µÄÉî¶È this.depth ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ