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

Javascriptµ¯³ö¶Ô»°¿ò3ÖÖ·½Ê½

<!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>ÈýÖÖµ¯³ö¶Ô»°¿òµÄÓ÷¨ÊµÀý</title>
<script language=javascript >
     function ale()
    {
        //Õâ¸ö»ù±¾Ã»ÓÐʲô˵µÄ£¬¾ÍÊǵ¯³öÒ»¸öÌáÐѵĶԻ°¿ò
        alert("ÎÒ¸Ò±£Ö¤£¬¼ÖÅôÄãÏÖÔÚÓõÄÊÇÑÝʾһ£ºÌáÐѶԻ°¿ò");
    }
     function firm()
    {
        //ÀûÓöԻ°¿ò·µ»ØµÄÖµ£¨true »òÕß false£©
        if(confirm("ÄãÈ·ÐÅҪתȥ¼ÖÅôµÄ²©¿Í£¿"))
        {//Èç¹ûÊÇtrue £¬ÄÇô¾Í°ÑÒ³Ãæ×ªÏòttp://hi.baidu.com/jiapeng8624237
         location.href="http://hi.baidu.com/jiapeng8624237";
        }
        else
        {
        //·ñÔò˵Ã÷ÏÂÁË£¬ºðºð……
         alert("Äã°´ÁËÈ¡Ïû£¬ÄǾÍÊÇ·µ»Øfalse");
        }
    }
   
     function prom()
    {
        var name=prompt("ÇëÊäÈëÄúµÄÃû×Ö","YoungBabyÌáÐÑÄúÔÚÕâÀïÊäÈëÄúµÄÃû×Ö");//½«ÊäÈëµÄÄÚÈݸ³¸ø±äÁ¿ name £¬
        //ÕâÀïÐèҪעÒâµÄÊÇ£¬promptÓÐÁ½¸ö²ÎÊý£¬Ç°ÃæÊÇÌáʾµÄ»°£¬ºóÃæÊǵ±¶Ô»°¿ò³öÀ´ºó£¬ÔÚ¶Ô»°¿òÀïµÄĬÈÏÖµ
        if(name)//Èç¹û·µ»ØµÄÓÐÄÚÈÝ
        {
  &nb


Ïà¹ØÎĵµ£º

HTML+Javascript+XML


ÉÏÃæËù˵ÓйØHTMLµÄÄÚÈݷdz£ÉÙÓÖ¼òµ¥,µ«¶ÔÒѾ­Á˽âµÄÈËÀ´Ëµ¾ÍÊÇûÓõÄ.
ÈçÓÐÎÊÌâ¿Éµ½È¨ÍþÍø http://www.html.com/ Éϲ鿴
ÒÔÏ¿ªÊ¼ËµËµ¹ØÓÚXMLµÄһЩ֪ʶ.
XMLÒ²ÊDZê¼ÇÓïÑÔ,¿ÉËüÊÇ×Ô¶¨ÒåµÄ,ûÓÐÒѸø¶¨¸ñʽ.²»¾ßÌå˵Ëü,¸ø³öÀý×ӾͿÉÃ÷ÁË.
Èç
<NAME>TOM</NAME>
<SEX>M</SEX>
ÒÔÉÏÄÚÈݵÄ< ......

[·­Òë]High Performance JavaScript(002)

Grouping Scripts ³É×é½Å±¾
    Since each <script> tag blocks the page from rendering during initial download, it's helpful to limit the total number of <script> tags contained in the page. This applies to both inline scripts as well as those in external files. Every time ......

[·­Òë]High Performance JavaScript(003)

Dynamic Script Elements  ¶¯Ì¬½Å±¾ÔªËØ
    The Document Object Model (DOM) allows you to dynamically create almost any part of an HTML document using JavaScript. At its root, the <script> element isn't any different than any other element on a page: references can be retrie ......

һЩjavascriptÌâÄ¿

ȺÀïÌÖÂÛ¹ýµÄÌâÄ¿£¬·ÖÏíһϡ£
function test(){
var m=n=1;
alert(m);
}
alert(n);
//ÒòΪtestº¯ÊýûÓÐÖ´ÐУ¬³Ì¶È¿ØÖÆÁ÷²»ÄܽøÈë½øÐнâÎö£¬ÀïÃæµÄ¶«Î÷¶ÔÍâÃæ²»¿É¼û£¬Òò´Ë±¨´í
function test(){
var m=n=1;
alert(m);
}
test();
alert(n);
//µ±testÖ´Ðкó£¬Í ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ