JavaScriptµÄÈÕÆÚ´¦Àí
var myDate = new Date();
myDate.getYear(); //»ñÈ¡µ±Ç°Äê·Ý(2λ)
myDate.getFullYear(); //»ñÈ¡ÍêÕûµÄÄê·Ý(4λ,1970-????)
myDate.getMonth(); //»ñÈ¡µ±Ç°Ô·Ý(0-11,0´ú±í1ÔÂ)
myDate.getDate(); //»ñÈ¡µ±Ç°ÈÕ(1-31)
myDate.getDay(); //»ñÈ¡µ±Ç°ÐÇÆÚX(0-6,0´ú±íÐÇÆÚÌì)
myDate.getTime(); //»ñÈ¡µ±Ç°Ê±¼ä(´Ó1970.1.1¿ªÊ¼µÄºÁÃëÊý)
myDate.getHours(); //»ñÈ¡µ±Ç°Ð¡Ê±Êý(0-23)
myDate.getMinutes(); //»ñÈ¡µ±Ç°·ÖÖÓÊý(0-59)
myDate.getSeconds(); //»ñÈ¡µ±Ç°ÃëÊý(0-59)
myDate.getMilliseconds(); //»ñÈ¡µ±Ç°ºÁÃëÊý(0-999)
myDate.toLocaleDateString(); //»ñÈ¡µ±Ç°ÈÕÆÚ
var mytime=myDate.toLocaleTimeString(); //»ñÈ¡µ±Ç°Ê±¼ä
myDate.toLocaleString( ); //»ñÈ¡ÈÕÆÚÓëʱ¼ä
ÈÕÆÚʱ¼ä½Å±¾¿â·½·¨Áбí
Date.prototype.isLeapYear ÅжÏÈòÄê
Date.prototype.Format ÈÕÆÚ¸ñʽ»¯
Date.prototype.DateAdd ÈÕÆÚ¼ÆËã
Date.prototype.DateDiff ±È½ÏÈÕÆÚ²î
Date.prototype.toString ÈÕÆÚת×Ö·û´®
Date.prototype.toArray ÈÕÆÚ·Ö¸îΪÊý×é
Date.prototype.DatePart È¡ÈÕÆÚµÄ²¿·ÖÐÅÏ¢
Date.prototype.MaxDayOfDate È¡ÈÕÆÚËùÔÚÔµÄ×î´óÌìÊý
Date.prototype.WeekNumOfYear ÅжÏÈÕÆÚËùÔÚÄêµÄµÚ¼¸ÖÜ
StringToDate ×Ö·û´®×ªÈÕÆÚÐÍ
IsValidDate ÑéÖ¤ÈÕÆÚÓÐЧÐÔ
CheckDateTime ÍêÕûÈÕÆÚʱ¼ä¼ì²é
daysBetween ÈÕÆÚÌìÊý²î
js´úÂ룺
//---------------------------------------------------
// ÅжÏÈòÄê
//---------------------------------------------------
Date.prototype.isLeapYear = function()
{
return (0==this.getYear()%4&&((this.getYear()%100!=0)||(this.getYear()%400==0)));
}
//-----------------------
Ïà¹ØÎĵµ£º
<table>
<tr>
<td style="width: 201px; height: 22px;" valign="middle" align="right">
&n ......
¶ÔÓÚJavaScriptµÄ Stack overflow at line ´íÎó×ܽá
¸Ã´íÎóÖ»ÔÚIEÖгöÏÖ£¬³öÏÖ¸ÃÌáʾµÄÔÒòÖ÷ÒªÓÐÁ½ÖÖ£º
1. ÖØ¶¨ÒåÁËϵͳµÄ´¥·¢Ê¼þÃû³Æ×÷Ϊ×Ô¶¨Ò庯ÊýÃûÈ磺 onclick / onsubmit ... ¶¼ÊÇϵͳ±£ÁôµÄʼþÃû³Æ£¬²»ÔÊÐí×÷ÎªÖØ¶¨Ò庯ÊýÃû³Æ¡£
2. ......
ÍøÒ³ÖÆ×÷Javascript¾µäС¼¼ÇÉ×ܽá
http://www.webjx.com ¸üÐÂÈÕÆÚ£º2007-10-12 01:25 ³ö´¦£ºÍøÒ³½ÌÑ§Íø ×÷ÕߣºÕ¾³¤ÕûÀí
ÿһÏî¶¼ÊÇJSÖеÄС¼¼ÇÉ£¬µ«Ê®·ÖµÄʵÓã¡
1.document.write(”"); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ ......
1. CSS
<style>
.dstyle1 {
font-size:13px;
font-weight: bold;
color: #ff6600;
}
.dstyle2 {
font-size:13px;
font-weight: bold;
color: #ffffff;
}
</style>
2. JavaScript
<script type="text/javascript">
m();
function m()
{
document.getElementById("span_new").classNa ......
<html>
<head>
<title>Javascript</title>
<script language="Javascript" type="text/javascript">
function callMethod()
{
/*http://localhost/waa/WebService.asmxΪServic ......