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

javascript »ñÈ¡·þÎñÆ÷ʱ¼ä

µ±ÐèÒªÔÚÍøÒ³ÖÐÏÔʾʱ¼äʱ¿ÉÒÔÓõ½ÏÂÃæÕâ¶Î´úÂ룺
<SCRIPT language=JavaScript type=text/JavaScript>
var day="";
var month="";
var ampm="";
var ampmhour="";
var myweekday="";
var year="";
mydate=new Date();
myweekday=mydate.getDay();
mymonth=mydate.getMonth()+1;
myday= mydate.getDate();
myyear= mydate.getYear();
year=(myyear > 200) ? myyear : 1900 + myyear;
if(myweekday == 0)
weekday=" ÐÇÆÚÈÕ ";
else if(myweekday == 1)
weekday=" ÐÇÆÚÒ» ";
else if(myweekday == 2)
weekday=" ÐÇÆÚ¶þ ";
else if(myweekday == 3)
weekday=" ÐÇÆÚÈý ";
else if(myweekday == 4)
weekday=" ÐÇÆÚËÄ ";
else if(myweekday == 5)
weekday=" ÐÇÆÚÎå ";
else if(myweekday == 6)
weekday=" ÐÇÆÚÁù ";
document.write(year+"Äê"+mymonth+"ÔÂ"+myday+"ÈÕ"+weekday);
</SCRIPT>


Ïà¹ØÎĵµ£º

·¢²¼Ò»¸ö»ùÓÚjavascriptµÄÈÕÆÚÀ©Õ¹


javascriptÖжÔÈÕÆÚÊDZȽÏÈõµÄ£¬ÌرðÊÇÈÕÆÚ¸ñʽ»¯ºÍ´Ó×Ö·ûÖлñÈ¡ÈÕÆÚÕâÁ½¸ö¹¦ÄÜÊÇû
Óеģ¬×Ô¼ºÐ´³ÌÐòµÄʱºò·â×°ÁËÕâЩ¹¦ÄÜ£¬·ÖÏíһϣ¬Ï£Íû¶Ô´ó¼ÒÓÐÓá£ÕâЩÀ©Õ¹ÓÐЩÊÇÍøÉÏһЩÅóÓÑдµÄ£¬¾­¹ýÎҵĸÄÔ죬ÓÐЩÊÇÎÒ×Ô¼ºÐ´µÄ¡£
º¯ÊýµÄ¹¦ÄÜ·Ö±ðÊÇ£º
Date.prototype.format =
function(format)£º¸ù¾Ý±í´ïʽ½«ÈÕÆÚ¸ñʽ»¯Îª ......

javascript¿ª·¢¾­ÑéÖ®——ѹËõ


ÏÖÔÚµÄRIA£¨Rich Internet
applications)Ô½À´Ô½Á÷ÐУ¬JavascriptÔÚÕâÖмäÆðµ½Á˲»¿ÉºöÊÓµÄ×÷Óã¬Õâ¸öÊÀ½çÉÏ£¬ÍêÈ«²»ÓÃJSµÄÍøÕ¾Ó¦¸ÃºÜÉÙÁË£¬Ò»Ð©Óû§ÌåÑéºÃ
µÄÍøÕ¾£¬´ó¶à²ÉÓÃÁËFlash»òÕßJS£¬¶øÒÔJS¾Ó¶à¡£±ÈÈçÏñQunar£¬¾ÍÊÇÒÔJavascript +
AjaxΪÖ÷µÄÍøÕ¾£¬Ç°Ì¨Ò³ÃæÖ÷ÒªÊÇHTML£¬ºǫ́Éú³ÉJSONÊý¾Ý¡£ÔÙ±ÈÈç˵Ajax×îÔç´ó¹ ......

JavaScriptÄÚºËϵÁÐ µÚ5Õ Êý×é

µÚÎåÕ Êý×é JavaScriptµÄÊý×éÒ²ÊÇÒ»¸ö±È½ÏÓÐÒâ˼µÄÖ÷Ì⣬ËäÈ»ÃûΪÊý×é(Array)£¬µ«ÊǸù¾ÝÊý×é¶ÔÏóÉϵķ½·¨À´¿´£¬¸üÏñÊǽ«ºÜ¶à¶«Î÷»ìÔÚÔÚÒ»ÆðµÄ½á¹û¡£¶ø´«Í³µÄ³ÌÐòÉè¼ÆÓïÑÔÈçC/JavaÖУ¬Êý×éÄÚµÄÔªËØÐèÒª¾ßÓÐÏàͬµÄÊý¾ÝÀàÐÍ£¬¶ø×÷ΪÈõÀàÐ͵ÄJavaScript£¬ÔòûÓÐÕâ¸öÏÞÖÆ£¬ÊÂʵÉÏ£¬JavaScriptµÄͬһ¸öÊý×éÖУ¬¿ÉÒÔÓи÷ÖÖÍêÈ«²»Í ......

javascript ¶¯Ì¬Ìí¼Óʼþ


<html xmlns="http://www.w3.org/1999/xhtml" >
<head >
    <title></title>
</head>
<body>
       
    <form id="form1">
    <div>
  & ......

JavaScript±Ê¼Ç

ä¯ÀÀÆ÷ÒѾ­¿´µ½µÄ¶«Î÷¶¼´æÔÚ»º´æÎļþ¼ÐÀï¡£
½Å±¾×¢ÊÍ: µ¥ÐÐ// ¶àÐÐ/*....*/
Æô¶¯Ê±ºò¼ÓÔØfunction()      window.onload= function;
alert Ìáʾ¶Ô»°¿ò alert("ÌáʾÄÚÈÝ");
promptÌáʾÊäÈë¿òprompt("ÌáʾÄÚÈÝ","ĬÈÏÖµ")£»
   
JavaScriptÖض¨Ïò ÔÚ×°ÔØÒ³Ãæʱ£¬²»ÄÜÔÚ×°ÔØÍêÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ