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

JavaScript¸ß¼¶³ÌÐòÉè¼ÆÑ§Ï°±Ê¼Ç2£º Ä£Ä⺯ÊýÖØÔØ

ÓÃarguments¶ÔÏó¼ì²â´«µÝ¸øº¯ÊýµÄ²ÎÊý¸öÊý£ºarguments.length
function test(){
    if(arguments.length == 1)
        alert(arguments[0] + "£¬ÄãºÃ");
    else if(arguments.length == 2)
        alert(arguments[0] + "," + arguments[1] + "£¬ÄãÃǺÃ")
    else
        alert("´ó¼ÒºÃ");   
}
test();   //Êä³ö: ´ó¼ÒºÃ
test("a");  //Êä³ö: a£¬ÄãºÃ
test("a","b");  //Êä³ö: a,b,ÄãÃǺÃ
test("a","b","c","d");  //Êä³ö: ´ó¼ÒºÃ


Ïà¹ØÎĵµ£º

flex ºÍjavascript»¥Ïàµ÷ÓÃ

flex ºÍjavascript»¥Ïàµ÷Óá£
Ò»¡¢flex µ÷ÓÃjavascript
  Ö»ÐèʹÓþ²Ì¬µÄExternalInterface.call¾Í¿ÉÒÔÁË¡£
  call ·½·¨ÖÁÉÙÒªÇóÒ»¸ö²ÎÊý£¬¾ÍËùµ÷ÓöÊýµÄÃû³Æ¡£
  Ò²¿ÉÒÔ´«µÝ²ÎÊý¡£
  È磺
    ExternalInterface.call("alert","hello");
   "hello"¾ÍÊÇ×÷Ϊalertµ ......

javascript ÔËÐлúÖÆ

ÒÔÏÂÈ«ÊǸöÈËÀí½âÒÔ¼°ÍøÉϲéÕÒ¶øÀ´,ÈçÓв»¶ÔÇëÖ¸Õý...
¼ÙÈçÓÐn¶Îjs´úÂë ÓÃ<script>±êÇ©¸ô¿ªµÄ.
ÔËÐÐ˳ÐòÊÇ
step1. ¶ÁÈëµÚÒ»¸ö´úÂë¶Î
step2. ×öÓï·¨·ÖÎö£¬ÓдíÔò±¨Óï·¨´íÎ󣨱ÈÈçÀ¨ºÅ²»Æ¥ÅäµÈ£©£¬²¢Ìø×ªµ½step5
step3. ¶Ôvar±äÁ¿ºÍfunction¶¨Òå×ö“Ô¤½âÎö”£¨ÓÀÔ¶²»»á±¨´íµÄ£¬ÒòΪֻ½âÎöÕýÈ·µÄÉùÃ÷£©
......

JavascriptʵÏÖÈÕÆÚʱ¼äµÄµ¹¼ÆÊ±

<html>
<body>
<SCRIPT type="text/javascript">
<!--
var target=[]
var time_id=[]
function ShowDateTime(){
    setTimeout("ShowDateTime()", 1000);
for (var i=0,j=target.length;i<j;i++)
{
    var today=new Date();
    timeo ......

JavaScriptʵÏÖÍøÒ³µÄ·Å´óËõСÒÔ¼°Í϶¯¹¦ÄÜ

ÏîÄ¿ÖÐÓöµ½Ò»ÖÖÇé¿ö£¬¿ª·¢µÄÒ³Ãæ»æÖƳöÀ´µÄͼƬ»òÕßµ×ͼ¶¼±È½Ï´ó£¬³¬¹ýÆÁÄ»´óСÐí¶à¡£ÎªÁ˸ÄÉÆÊ¹ÓÃÌåÑ飬ÐèÒª¸øÕâÀàÒ³ÃæÌí¼Ó·Å´ó¡¢ËõСÒÔ¼°Æ½ÒƵŦÄÜ¡£¾­¹ýÒ»·¬ËÑË÷ºÍ³¢ÊÔ£¬ÊµÏÖÁËÓйع¦ÄÜ£¬±¸ÍüÈçÏ¡£
JavaScript£º
var zoomRate = 20;//ÿ´Î·ÅËõ±ÈÀýÔöÁ¿
var maxRate = 300;//×î´ó·Å´ó±¶Êý
var minRate = 20;//×îС ......

Zakas½â´ðBaranovskiyµÄJavaScriptС²âÊÔ

×ªÔØ×Ô£ºhttp://hikejun.com/blog/?p=536
Zakas 1/22ÔÚtwitterÉÏ·ÖÏíÁËBaranovskiyµÄһƪÎÄÕ“So, you think you know JavaScript?
”£¨ÄãÈÏΪÄã¹»Á˽âjavascriptÂ𣩱êÌâºÜ½Ð°å¡£½á¹û5С¶Î´úÂë×öµÄÏ¡ÀﻩÀ²¡£
½ñÌìZakasרÃÅ׫ÎĽâ´ðÁËÕ⼸µÀÌ⣨http://www.nczonline.net/blog/2010/01/26/answering-baranov ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ