Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ʹÓ÷½·¨


¢Ù     JavaScriptÌí¼ÓλÖã¬Ìí¼ÓλÖôíÎ󣬻áÒýÆðJavaScript´úÂëÎÞ·¨Ö´ÐеÄÎÊÌâ¡£
<head runat="server">
<script type='text/javascript' language="javascript">
<!—
//“Ìí¼ÓÄÚÈÝ”
//-->
</script>
</head>
 
¢Ú ÒýÓÃËû´¦µÄ½Å±¾ ......

ÍøÒ³ÖÆ×÷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µÄÈÕÆÚ´¦Àí

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ºÅ