Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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)


Ïà¹ØÎÊ´ð£º

Óà javascriptɾ³ýÒ»¸öÁ´½Ó

<a href="deleteIn.do?iid= <%=inForm.getInId()%>" >ɾ³ý </a>

µã»÷ɾ³ýºóÒªÌáʾÊÇ·ñɾ³ý 
Ôõô¸ã°¡
function onclick(){
  if(confirm("ÊÇ·ñҪɾ³ý& ......

ActiveXºÍJavaScriptµÄ½»»¥ÎÊÌâ

    ÎÊÌâÃèÊöÈçÏ£º
    ÓÃC#¿ª·¢µÄActiveXǶÈëÍøÒ³ÖУ¬¸ÃActiveXÖÐÓÐÒ»¸ö°´Å¥button1.ÏÖÔÚҪʹµÃÓû§µ¥»÷ÁËbutton1ºóʵÏÖÒ³ÃæÌøתµÄ¹¦ÄÜ£¬¼´Óɵ±Ç°µÄ1.htmÌøתµ½2.htm¡£
    Î ......

ÉñÆæµÄJavascript BUG¡£Çó¸ßÊÖÖ¸µã£¡

JScript code:

<form id="myform" name="myform">
<input type='hidden' name='maxp' value='6'></input>
<input type='text' id='pageinput' onkeydown="if(e ......

ÇóÒ»×éÕýÔò±í´ïʽjavascriptµÄ

ÀàËÆÕâÑùµÄtmpContent = tmpContent.replace(/" "+\r\n/g,"\r\n");

tmpContentµÄÖµÊÇ´ÓÒ³ÃæµÄÒ»¸ötextareaµÃµ½µÄ£¬textareaÀïÃæÊäÈëµÄÄÚÈÝÊÇÓû§ËæÒâÊäÈëµÄÎı¾ÄÚÈÝ

ÎÒµÄÄ¿µÄÊÇ£º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ