JavaScript ÈÕÆÚת»¯
Ôõô½«ÕâÖÖÀàÐÍ
Mon Sep 15 00:00:00 CEST 2008
µÄÈÕÆÚת»¯Îª
2008-10-15
ûÈË»áÂð£¿
JScript code:
function formatDate(D)
{//µ÷Õûʱ¼äÏÔʾ¸ñʽ2007-01-01 12:00:00
return D.getFullYear() + "-" + (D.getMonth() + 1) + "-" + D.getDate() + " " + D.getHours() + ":" + D.getMinutes() + ":" + D.getSeconds();
}
alert("ת»¯Ç°£º" + new Date());
alert("ת»¯ºó£º" + formatDate(new Date()));
JScript code:
if(!Date.prototype.format){//ÈÕÆÚ¸ñʽ»¯
Date.prototype.format = function(format)
{
var o =
{
"M+" : this.getMonth()+1, //month
"d+" : this.getDate(), //day
"h+" : this.getHours(), //hour
"m+" : this.getMinutes(), //minute
"s+" : this.getSeconds(), //second
"q+" : Math.floor((this.getMonth()+3)/3), //quarter
"S" : this.getMilliseconds() //millisecond
}
if(/(y+)/.test(format))
format=format.replace(RegExp.$1,(this.getFullYear()+"").substr(4 - RegExp.$1.length));
for(var k in o)
Ïà¹ØÎÊ´ð£º
<form id="form1" runat="server">
<div>
<script type="text/javascript">
function oo(a){
document.getEleme ......
http://www.google.cn/
ÖеÄÄǸö¸ü¶àÓÃJavaScriptÔõôʵÏÖ?²»ÒªÓÃjQ.
HTML code:
<script type="text/javascript">
function showMenu(e) {
document.getElementById ......
insertAuUser.jspÒ³ÃæÖÐÓиö <div id="link"> </div>£¬ÎÒÏëÓà out.print("link.innerHTML=\" <a href=' <%=request.getContextPath()%>/jsp/authority/au/auuser/next ......
ÕâÀïÓÃjavascript ·½·¨ÊµÏÖÁËTreeViewµÄcheckboxÑ¡ÖеÄЧ¹û£º
1£ºÑ¡Öи¸½ÚµãµÄʱºò£¬Æä×ӽڵ㽫×Ô¶¯Ñ¡ÖУ»
2£ºÈô¸¸½Úµã²»Ñ¡ÖУ¬Æä×Ó½ÚµãҲȫ²¿Ñ¡ÖУ»
2£ºÈôÆäÖÐÒ»¸ö×Ó½ÚµãuncheckµÄʱºò£¬Æä¸¸½ ......
javascript¶¯Ì¬ÍøÒ³¿ª·¢Ïê½â ÕâÊéÔõôÑù
Ï´ÎÏ£ÍûÄãÄܰÑÏëÎʵÄÎÊÌâ½²Çå³þ£¬²»È»ºÜÄÑÓÐÈ˻شðÄãµÄÎÊÌâ¡£
ÄãÕâÑùÎÊ»ù±¾Éϲ»Á˽âÄãÏëÒªÖªµÀЩʲô¡£
£º£©
ÊÇÕâÑùµÄ£¡
Ò»£¡£¡ÎÒ·¢ÏÖÂ¥ÉϺÍÎÒ³¤Ïà²î²»¶ ......