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

JavaScriptÓëJavaµÄÇø±ð

JavaScriptÊÇÒ»ÖÖͨÓõġ¢»ùÓÚÔ­Ð͵ġ¢ÃæÏò¶ÔÏóµÄ½Å±¾ÓïÑÔ£¬¶ø½Å±¾ÓïÑÔ¾ÍÊÇÖ¸¿ÉÒÔºÍHtmlÓïÑÔ»ìºÏʹÓõÄÓïÑÔ
1.JavaScriptÓëJavaµÄÇø±ð
     A. JavaScriptÊǽâÊÍÐ͵ÄÓïÑÔ£¬µ±³ÌÐòÖ´ÐеÄʱºò£¬ä¯ÀÀÆ÷Ò»±ß½âÊÍÒ»±ßÖ´ÐС£¶øJavaÊDZàÒëÐ͵ÄÓïÑÔ£¬±ØÐë¾­¹ý±àÒë²ÅÄÜÖ´ÐÐ
     B. ´úÂë¸ñʽ²»Ò»Ñù¡£Java´úÂë¾­¹ý±àÒëºó³ÉΪ¶þ½øÖÆÎļþ£¬¶øJavaScriptÊÇ´¿Îı¾µÄÎļþ
     C. ÔÚHtmlÖеÄǶÈ뷽ʽ²»Ò»Ñù¡£Java¿ÉÒÔͨ¹ýСӦÓóÌÐòǶÈëHtmlÎļþ£¬¶øJavaScript¿ÉÖ±½ÓдÈëÒ»¸öÎı¾Îļþ»òHtmlÎļþÖÐ
2.HtmlÖÐǶÈëJavaScriptµÄ¸ñʽ
     <Script Language='JavaScript'>    
          JavaScriptÓï¾ä
     </Script>
     ×¢Ò⣺JavaScriptÊÇÇø·Ö´óСдµÄ
3.JavaScriptÖеÄ×Ô¶¨Ò庯Êý
     ¶¨Òå¸ñʽ£ºfunction º¯ÊýÃû(Ðβζ¨ÒåÁбí)
                    {
                          º¯ÊýÌ壻
                          return Öµ£»
                    }
     ×¢Ò⣺º¯Êý½áÊøʱ¿ÉÒÔûÓÐreturnÓï¾ä£¬µ«ÊÇÖ»ÒªÓöµ½returnÓï¾äº¯Êý¾Í½áÊø
 
 


Ïà¹ØÎĵµ£º

javascriptÒ»¶Îʱ¼ä´úÂë

<SCRIPT language=javaScript>
<!--
now = new Date(),hour = now.getHours()
if(hour < 6){document.write("Á賿ºÃ!")}
else if (hour < 9){document.write("ÔçÉϺã¡")}
else if (hour < 12){document.write("ÉÏÎçºÃ£¡")}
else if (hour < 14){document.write("ÖÐÎçºÃ£¡")}
else if (hour &l ......

JavaScript³£Ó÷½·¨×ܽᗗһЩº¯Êý

¸ù¾ÝÉí·ÝÖ¤ºÅÂëÈ¡µÃÉúÈÕÓëÐԱ𣬲¢ÅжÏ18λÉí·ÝÖ¤µÄÕýÈ·Óë´íÎó:
function showBirthday(val){
var birthdayValue;
if(15==val.length){//15λÉí·ÝÖ¤ºÅÂë
birthdayValue = val.charAt(6)+val.charAt(7);
if(parseInt(birthdayValue)<10){
birthdayValue = '20'+birthdayValue;
}else{
birthdayValue = '1 ......

JavaScript³£Ó÷½·¨×ܽᗗIE¹¦ÄÜ»ã×Ü

IE¹¦ÄÜ»ã×Ü
<OBJECT id=WebBrowser height=0 width=0
classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2></OBJECT>
<INPUT onclick=document.all.WebBrowser.ExecWB(1,1) type=button value=´ò¿ª name=Button1>
<INPUT onclick=document.all.WebBrowser.ExecWB(4,1) type=button value=Áí´ ......

Javascript²Ù×÷Cookie

<script>
function getCookieVal(offset) {
  var endstr = document.cookie.indexOf(";",offset);
  if(endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset,endstr));
}
function FixCookieDate(data) {
  var ba ......

JavaScript ³õ¼¶½Ì³Ì

ÔÚÊý°ÙÍòÕÅÒ³ÃæÖУ¬JavaScript ±»ÓÃÀ´¸Ä½øÉè¼Æ¡¢ÑéÖ¤±íµ¥¡¢¼ì²âä¯ÀÀÆ÷¡¢´´½¨cookies£¬µÈµÈµÈµÈ¡£
JavaScript ÊÇÒòÌØÍøÉÏ×îÁ÷ÐеĽű¾ÓïÑÔ£¬²¢ÇÒ¿ÉÔÚËùÓÐÖ÷ÒªµÄä¯ÀÀÆ÷ÖÐÔËÐУ¬±È·½Ëµ Internet Explorer¡¢ Mozilla¡¢Firefox¡¢Netscape¡¢ºÍ Opera¡£
ʲôÊÇ JavaScript£¿
JavaScript ±»Éè¼ÆÓÃÀ´Ïò HTML Ò³ÃæÌí¼Ó½»»¥ÐÐΪ¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ