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

JavascriptÈëÃÅ£¨¿É¹©CSS/JS/XSS³õѧÕ߲ο¼£©

JavaScript×÷ÓÃС½á£º
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() + “<br>”); 
6: document.write(myVariable.bold() + “<br>”); 
7: docume


Ïà¹ØÎĵµ£º

CSSÑ¡Ï

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ÎҵϬ¶¯ÃÅ& ......

¼¸¸ö²»´íµÄJavaScript¿çƽ̨ͼ±í¿â

1. timeplot
µØÖ·£ºhttp://www.simile-widgets.org/timeplot/
ÏÂÔØ£ºhttp://code.google.com/p/simile-widgets/downloads/list
2.flot
ÊÇÒ»¸öjquery²å¼þ£¬Ð§¹û²»´í¡£
µØÖ·£ºhttp://code.google.com/p/flot/
3.Highcharts
µØÖ·£ºhttp://www.highcharts.com/
ºÃÏñÖ»¶Ô¸öÈËÃâ·Ñ¡£
......

javascript cookies ±£´æ¡¢»ñÈ¡ºÍɾ³ý

CookiesÊÇÒ»ÖÖÄܹ»ÈÃÍøÕ¾·þÎñÆ÷°ÑÉÙÁ¿Êý¾Ý´¢´æµ½¿Í»§¶ËµÄÓ²ÅÌ»òÄڴ棬»òÊÇ´Ó¿Í»§¶ËµÄÓ²Å̶ÁÈ¡Êý¾ÝµÄÒ»ÖÖ¼¼Êõ¡£CookiesÊǵ±Äãä¯ÀÀÄ³ÍøÕ¾Ê±£¬ÓÉWeb·þÎñÆ÷ÖÃÓÚÄãÓ²ÅÌÉϵÄÒ»¸ö·Ç³£Ð¡µÄÎı¾Îļþ£¬Ëü¿ÉÒԼǼÄãµÄÓû§ID¡¢ÃÜÂë¡¢ä¯ÀÀ¹ýµÄÍøÒ³¡¢Í£ÁôµÄʱ¼äµÈÐÅÏ¢¡£µ±ÄãÔÙ´ÎÀ´µ½¸ÃÍøÕ¾Ê±£¬ÍøÕ¾Í¨¹ý¶ÁÈ¡Cookies£¬µÃÖªÄãµÄÏà¹ØÐÅÏ¢£¬¾Í ......

JavaScriptÄ£¿éËæÒâÍ϶¯

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JavaScriptÄ£¿éË ......

[ת]ÓÃJavascript»ñÈ¡Ò³ÃæÔªËØµÄλÖÃ

ÓÃJavascript»ñÈ¡Ò³ÃæÔªËØµÄλÖÃ
ÈîÒ»·å ·¢±íÓÚ 2009Äê09ÔÂ14ÈÕ
|
·ÖÀࣺÊ×Ò³
-> µµ°¸
-> IT¼¼Êõ


ÖÆ
×÷ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹ØÖªÊ¶¡£
Ò»¡¢ÍøÒ³µÄ¾ø¶Ô´ó ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ