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

JAVASCRIPT·ÃÎʸ¸´°¿ÚµÄ±äÁ¿»ò·½·¨


AA.HTM
-------------------------------------
<!--
showModalDialogº¯ÊýµÄʹÓà  (ת)     
±¾·¶Àý¿ÉÒÔʵÏÖµ¯³öÒ»¸öģ̬´°¿Ú£¬²¢ÑÝʾÁËÁ½ÖÖ½ÓÊպʹ«µÝ²ÎÊýµÄ·½·¨£¬Í¬Ê±¿ÉÒÔ½ÓÊÜģ̬´°¿Ú·µ»ØµÄ¶à¸ö±äÁ¿   
-->
<html>     
    
<head>     
<meta   http-equiv="Content-Type" content="text/html; charset=gb2312">     
<title>Ö÷½çÃæ</title>     
</head>     
    
<body>     
<form id="getForm"> »Ø´«Öµ£º
<input   type="text"   id="getData"   readOnly>   
<input   type="text"   id="getData1" readOnly>     
<input   type="text"   id="getData2" readOnly> 
</form>     
<input   type="button"   value="´ò¿ªÐ´°¿Ú1"   onClick="openWin1()">     
<input   type="button"   value="´ò¿ªÐ´°¿Ú2"   onClick="openWin2()">     
<script   language="JavaScript">          
function   openWin1()           
{                   
      var   srcFile   =   "BB.htm";         //д°¿ÚµÄÎĵµÃû³Æ                   
      var   winFeatures   =   "dia


Ïà¹ØÎĵµ£º

javascript:void(0)

  javascript:void(0)
   ¸Õ¿ªÊ¼¶¼²»ÖªµÀÊÇɶÒâ˼
  Æäʵ¾ÍÊÇÒ»¸öËÀÁ´½Ó£¬Ê²Ã´ÊÂÇ鶼²»×ö¡£
  <a id="link_${user.account}" href="javascript:void(0);" onclick="changSubmit();" style="cursor:pointer;height:25px;width:60px;margin-top:10px;">·¢ËÍemail</a>
  Õâ¾ä ......

ÍøÒ³ÖÆ×÷Javascript¾­µäС¼¼ÇÉ×ܽá


ÍøÒ³ÖÆ×÷Javascript¾­µäС¼¼ÇÉ×ܽá
http://www.webjx.com  ¸üÐÂÈÕÆÚ£º2007-10-12 01:25  ³ö´¦£ºÍøÒ³½ÌѧÍø  ×÷ÕߣºÕ¾³¤ÕûÀí
ÿһÏÊÇJSÖеÄС¼¼ÇÉ£¬µ«Ê®·ÖµÄʵÓã¡
1.document.write(”"); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ ......

javascriptÖÐloose typeµÄÓ°Ïì


var obj = new Object();
obj.name = "hello";
obj['name'] = "world";
alert(obj.name);
±»ÈËÎʵ½ÕâÑùÒ»¶Î´úÂ룬alertµÄ½á¹ûÓ¦¸ÃÊÇʲôÄØ£¿
Îһشð£ºhello #½á¹û´ó´íÌØ´í£¡
Ó¦¸ÃÊÇ“world”£¡£¡£¡
ÒòΪjsÊÇÒ»ÖÖËÉÉ¢ÀàÐ͵ÄÓïÑÔ£¬objËäÈ»±»ÉùÃ÷ÊÇÒ»¸ö¶ÔÏ󣬵«ÊÇ°ÑËüµ±³ÉÊý×éÀ´·ÃÎÊҲûʲô²»¿ÉÒÔ¡£
ËäÈ» ......

ÔÚjavascript ÖÐʹÓÃJSON

ÒòΪJSON ÊÇ javascript µÄÒ»¸ö×Ó¼¯£¬ËùÒÔ£¬ÔÚjavascript ÖÐʹÓÃJSONÊǷdz£¼òµ¥µÄ¡£
   
   
js ´úÂë
 
var myJSONObject = {"bindings": [  
        {"ircEvent": "PRIVMSG", "method":&n ......

JavaScriptµÄÈÕÆÚ´¦Àí

var myDate = new Date();
myDate.getYear();        //»ñÈ¡µ±Ç°Äê·Ý(2λ)
myDate.getFullYear();    //»ñÈ¡ÍêÕûµÄÄê·Ý(4λ,1970-????)
myDate.getMonth();       //»ñÈ¡µ±Ç°Ô·Ý(0-11,0´ú±í1ÔÂ)
myDate.getDate();    ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ