JS取当前日期和时间

<script><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">var myDate = new Date();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getYear();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前年份(2位)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert(myDate.getYear()) //2009</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getFullYear();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取完整的年份(4位,1970-????)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert(myDate.getFullYear()); 2009</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getMonth();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前月份(0-11,0代表1月)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert(myDate.getMonth()); //7(实际是8月)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getDate();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前日(1-31)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert( myDate.getDate()); //13</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getDay();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前星期X(0-6,0代表星期天)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert(myDate.getDay()); //4 代表星期四</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getTime();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前时间(从1970.1.1开始的毫秒数)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getHours();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前小时数(0-23)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert(myDate.getHours()); //9 代表9点</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getMinutes();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前分钟数(0-59)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert(myDate.getMinutes()); //45 分</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getSeconds();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前秒数(0-59)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert(myDate.getSeconds()); //40 秒数</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.getMilliseconds();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前毫秒数(0-999)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.toLocaleDateString();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前日期</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">var mytime=myDate.toLocaleTimeString();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取当前时间</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert(mytime);//9:40:18</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">myDate.toLocaleString( );</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//获取日期与时间</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//alert( myDate.toLocaleString( )); //2009年8月13日 9:40:58</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">&lt;/script&gt;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">如果想取双份的月和日,要自己加判断进行处理,例如:</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">&lt;script&gt;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">function curDateTime() {</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">var d = new Date();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">var year = d.getYear();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">var month = d.getMonth() + 1;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">var date = d.getDate();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">var day = d.getDay();</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">var curDateTime = year;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">if (month &gt; 9)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">curDateTime = curDateTime + month;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">else</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">curDateTime = curDateTime + "0" + month;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">if (date &gt; 9)</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">curDateTime = curDateTime + date;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">else</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">curDateTime = curDateTime + "0" + date;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">//myform.kprq.value = curDateTime;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">alert("当前日期"+curDateTime);</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"></span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">document.getElementByIdx_x("date").value=curDateTime;</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">}</span><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left"><span style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left">&lt;/script&gt;</span></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr><wbr style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left; background-color:rgb(138,138,138)"><br style="color:rgb(50,62,50); font-family:Arial,sans-serif,Helvetica,Tahoma; line-height:18px; text-align:left; background-color:rgb(138,138,138)"></wbr>

你可能感兴趣的:(js)