javascript ʱ¼ä±È½ÏʵÏÖ´úÂë
web¿ª·¢ÖÐÓÐʱÐèÒª¶ÔÊäÈë¿òÖеÄʱ¼ä£¨Ö÷ÒªÊÇ¿ªÊ¼Ê±¼äºÍ½áÊøʱ¼ä£©½øÐбȽϣ¬ÍøÉÏËÑË÷ÁËÒ»·¬£¬·¢ÏÖÓв»ÉÙÊÇÎÞЧµÄ£¬ÒÔÏ·½·¨¾Ð¡µÜ¼ìÑéȷʵÓÐЧ£¬Ìش˹²Ïí¡££¨Çë¹Ø×¢ºìÉ«²¿·Ö£©
function ValidtorTime(){
var d1 = new Date(document.getElementById('txbfromDate').value.replace(/\-/g, "\/"));
var d2 = new Date(document.getElementById('txbToDate').value.replace(/\-/g, "\/"));
if(d1>d2)
{
alert("½áÊøʱ¼ä±ØÐëÔÚ¿ªÊ¼Ê±¼äÖ®ºó!");
return false;
}
return true;
}
Ïà¹ØÎĵµ£º
JavaScriptÖеÄÔÐÍ(prototyping) prototypeÊôÐÔ
1.¶ÔÄÚÖöÔÏóµÄÀ©Õ¹
(StringÌí¼Ótrim()·½·¨)
****************
String.prototype.trim = funct ......
1.ÈçºÎÔÚJavaScript·ÃÎÊC#º¯Êý?
ÎÊÌâ1´ð°¸ÈçÏ£º
javaScriptº¯ÊýÖÐÖ´ÐÐC#´úÂëÖеĺ¯Êý£º
·½·¨Ò»£º1¡¢Ê×ÏȽ¨Á¢Ò»¸ö°´Å¥£¬ÔÚºǫ́½«µ÷Óûò´¦ÀíµÄÄÚÈÝдÈëbutton_clickÖÐ;
2¡¢ÔÚǰ̨дһ¸öjsº¯Êý£¬ÄÚÈÝΪdocument.getElementById("btn1").click();
......
1.Ajax Rain
¡¡¡¡AjaxRainÓкܶàÍêÃÀÕûºÏAJAX, CSS, DHTML »ò JavascriptµÄʵÀý£¬ÓÐһЩDemoµÄÈ·ÖµµÃÄãÈ¥¿´Ò»¿´£¬¼´Ê¹Äã²»ÊÇÍøÒ³Éè¼Æ(¿ª·¢)ʦ¡£
Ajax/JavascriptʵÀý:
EXT JS Date Picker
jQuery Feed Menu
jGrowl
FastFind Menu – Jquery
Spiffy Accordion
2.Ajax Daddy
¡¡¡ ......
ÔÚÃæÏò¶ÔÏó±à³ÌÓïÑÔÖУ¬¶ÔÓÚthis¹Ø¼ü×ÖÎÒÃÇÊǷdz£ÊìϤµÄ¡£±ÈÈçC++¡¢C#ºÍJavaµÈ¶¼ÌṩÁËÕâ¸ö¹Ø¼ü×Ö£¬ËäÈ»ÔÚ¿ªÊ¼Ñ§Ï°µÄʱºò¾õµÃ±È½ÏÄÑ£¬µ«Ö»ÒªÀí½âÁË£¬ÓÃÆðÀ´ÊǷdz£·½±ãºÍÒâÒåÈ·¶¨µÄ¡£JavaScriptÒ²ÌṩÁËÕâ¸öthis¹Ø¼ü×Ö£¬²»¹ýÓÃÆðÀ´¾Í±È¾µäOOÓïÑÔÖÐÒª"»ìÂÒ"µÄ¶àÁË¡£
ÏÂÃæ¾ÍÀ´¿´¿´£¬ÔÚJavaScriptÖи÷ÖÖthisµÄʹÓ÷½·¨ÓÐʲô ......