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

JavaScriptÎļþÒýÓÃJavaScriptÎļþµÄ·½·¨

·½·¨Ò»£º
Js_file01.js 
========
//³ÌÐò´úÂë
document.write(" <script  language=\"javascript\"  src="\/com\/ Js_file02.js \"  > <\/script>"); 
 
·½·¨¶þ£º
html´úÂë
³ÌÐò´úÂë
<html>
<body>
<input type="button" value="ok" onclick="javascript:fun_b()">
</body>
//±ØÐëÔÚÕâ¸öλÖã¬Ò²¼´<body>...</body>Ö®ÏÂ:
<script language="JAVASCRIPT" src='Js_b.js'> </script>
</html>
 
Js_b.js
========
//³ÌÐò´úÂë
new_element=document.createElement("script");
new_element.setAttribute("type","text/javascript");
new_element.setAttribute("src"," Js_a.js");
document.body.appendChild(new_element);
 
function fun_b ()
{
Fun_a();
}
 
Js_a.js
========
//³ÌÐò´úÂë
function Fun_a ()
{
alert("a");
}
 
·½·¨Èý£º
Js_file01.js 
========
//³ÌÐò´úÂë
document.scripts[0].src=" Js_file02.js"   // only ie
http://www.pqshow.com/design/jiqiao/200910/12077.html
 


Ïà¹ØÎĵµ£º

javascript ¹ýÂË textbox

<asp:TextBox ID="TextBox1" runat="server" onkeydown="return NotAllowSpace(this);"/></asp:TextBox>
<mce:script type="text/javascript" language="javascript"><!--
function NotAllowSpace(e)
{
var keyVal =(window.event) ? event.keyCode : e.keyCode; ......

JavascriptÖеÄÈÕÆÚ¸ñʽ»¯

×öJava¿ª·¢µÄÈ˶¼ÖªµÀ,ÔÚJavaÖÐÓÐXXXFormat(±ÈÈçSimpleDateFormat)Àà¿ÉÒÔ°ïÖúÎÒÃǵõ½ÏëÒªµÄÊý¾Ý¸ñʽ.ÔÚJavaScriptÖÐûÓÐÕâÑùµÄ¶«Î÷,ËùÒÔÎÒÃÇÐèÒªÓÃÁíÒ»ÖÖ·½·¨µÃµ½ÎÒÃÇÏëÒªµÄ¶«Î÷.´úÂëÈçÏÂ:
<html>
<head>
<title>Test</title>
<mce:script type="text/javascript" language="javascri ......

javascriptʼþ¼àÌý

Ô­ÌûµØÖ·£ºhttp://www.cnblogs.com/AganCN/archive/2009/02/06/1206272.html   ¿¼ÂÇÕâÑùµÄÇéÐÎÔÚIEä¯ÀÀÖд¦Àí£¬ÐèÒªÏìÓ¦Ò³ÃæµÄ°´Å¥µã»÷ʼþ£¬ÓÐÄÄЩ·½·¨ÄØ£¿
£¨1£©onclickÊôÐÔÌí¼Óʼþ´¦Àíº¯Êý
function DoClick()//handler of click event
{

}


test1
......

JavaScript´¦ÀíJson

JSON(JavaScript Object Notation) ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ£¬Ò×ÓÚÔĶÁºÍ±àд£¬Í¬Ê±Ò²Ò×ÓÚ»úÆ÷½âÎöºÍÉú³É¡£Ëü»ùÓÚECMA262ÓïÑԹ淶£¨1999-12µÚÈý°æ£©ÖÐJavaScript±à³ÌÓïÑÔµÄÒ»¸ö×Ó¼¯¡£ JSON²ÉÓÃÓë±à³ÌÓïÑÔÎ޹صÄÎı¾¸ñʽ£¬µ«ÊÇҲʹÓÃÁËÀàCÓïÑÔ£¨°üÀ¨C£¬ C++£¬ C#£¬ Java£¬ JavaScript£¬ Perl£¬ PythonµÈ£©µÄÏ°¹ß£¬ÕâЩÌØÐ ......

dygraphs——Ò»¸öºÜìŵÄJavaScript ͼ±í¿â

    dygraphs Ö÷ÒªÓÃÀ´ÏÔʾÃܼ¯Êý¾Ý¡£ËùνһͼʤǧÑÔ£¬dygraphs Éú³ÉµÄͼ±í¿ÉÒÔËæ×ÅÊó±êλÖÃÏÔʾÊý¾Ý£¬ÍÏק·Å´ó£¬Ë«»÷ËõС¡£
    dygraphs ÒÀÀµHTMLµÄ<canvas>±êÇ©£¬¶øÕâ¸ö±êǩ΢ÈíµÄIE Ç¡Ç¡²»Ö§³Ö¡£¹Ù·½ÍøÒ³ÉÏ˵û¹Øϵ£¬ÄãÖ»Òª°üº¬Ò»¸ö½Ðexcanvas µÄJavaScript. ¿â¾ÍÐÐÁË£¬µ«¾ÝÎÒ²âÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ