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)
Ïà¹ØÎÊ´ð£º
<a href="deleteIn.do?iid= <%=inForm.getInId()%>" >ɾ³ý </a>
µã»÷ɾ³ýºóÒªÌáʾÊÇ·ñɾ³ý
Ôõô¸ã°¡
function onclick(){
if(confirm("ÊÇ·ñҪɾ³ý& ......
ÎÊÌâÃèÊöÈçÏ£º
ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌøתµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌøתµ½2.htm¡£
Î ......
JScript code:
<form id="myform" name="myform">
<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(e ......
ÀàËÆÕâÑùµÄtmpContent = tmpContent.replace(/" "+\r\n/g,"\r\n");
tmpContentµÄÖµÊÇ´ÓÒ³ÃæµÄÒ»¸ötextareaµÃµ½µÄ£¬textareaÀïÃæÊäÈëµÄÄÚÈÝÊÇÓû§ËæÒâÊäÈëµÄÎı¾ÄÚÈÝ
ÎÒµÄÄ¿µÄÊÇ£º ......