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

JavaScript´úÂë(1)

//ºǫ́CSµ÷ÓÃǰ̨JS·½·¨
ClientScript.RegisterStartupScript(this.GetType(), "onclick", "<script>CheckInput()</script>");
//УÑéÊäÈë¿òÊÇ·ñΪ¿Õ£¬Ð£ÑéÊÇ·ñÊÇÊý×Ö
<script type="text/javascript" language="javascript">
         function CheckInput() {
             if (document.form1.txt_ReceiptID.value == "") {
                 alert('±¨Ïúµ¥ºÅ²»ÄÜΪ¿Õ!');
                 document.form1.txt_ReceiptID.focus();
                 return false;
             }
             else {
                    if(checknumber(document.form1.txt_ReceiptID.value)
                    {
                        alert("±¨Ïúµ¥ºÅΪÊý×Ö£¡");                       
                         document.form1.txt_ReceiptID.focus();
                         return false;
                 &nbs


Ïà¹ØÎĵµ£º

Javascript»ñÈ¡¸÷ÖÖä¯ÀÀÆ÷¿É¼û´°¿Ú´óС

¸ãÁË´ó°ëÌ죬×ÜËãŪÃ÷°×ÁËΪºÎÓÃdocument.body.clientHeight£¬document.body.offsetHeight¶¼Ã»Óаì
·¨»ñÈ¡ÍøÒ³¿É¼ûÇøÓòµÄÕýÈ·Öµ£¬Ô­À´×ï¿ý»öÊ×ÊÇW3C¶¨ÒåµÄ±ê×¼£¡£¡ÔÚж¨Òå³öÀ´µÄ±ê×¼ÏÂ
document.documentElement.clientHeightÔÚIEºÍ»ðºüÀï¶¼ÄÜ»ñÈ¡ÕýÈ·Öµ£¬ÏÂÃæÒ»ÆªÎÄÕÂÏêϸ½éÉÜÁË»ñÈ¡¸÷ÖÖä¯ÀÀÆ÷¿É¼û
´°¿Ú´óСÕâ·½ÃæµÄ²î ......

javascript ÉèÖÃÃÜÂëÇ¿¶È

 <table>
<tr>
                <td style="width: 201px; height: 22px;" valign="middle" align="right">
                &n ......

javascript DateÈÕÆÚ¶ÔÏó (ת)

´´½¨Ò»¸öÈÕÆÚ¶ÔÏó£º
var objDate=new Date([arguments list]);
²ÎÊýÐÎʽÓÐÒÔÏ£µÖÖ£º
   new Date("month dd,yyyy hh:mm:ss");
   new  Date("month dd,yyyy");
   new  Date(yyyy,mth,dd,hh,mm,ss);
   new Date(yyyy,mth,dd);
   new Date(ms); ......

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.Ò»¸öä¯ÀÀÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ