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

¡¾×ª¡¿Javascriptº¯ÊýÖд«µÝ´ø¿Õ¸ñµÄ²ÎÊý

Javascriptº¯ÊýÖд«µÝ´ø¿Õ¸ñµÄ²ÎÊý
       ͨ³£ÔÚÒ³ÃæÖÐÒªÈÃijЩÄÚÈݵã»÷ºó²úÉúµã»÷ʼþ£¨·ÇÒ³ÃæÌøת£©¶¼»áʹÓÃonclick£¬µ«ÊÇÕâÑù²»ÊÊÓÚÐèÒª´«µÝ²ÎÊýµÄÇé¿ö£¬ÓÚÊÇд³ÉÖ±½Óµ÷ÓÃJavascriptº¯ÊýµÄ·½Ê½£º<a href=javascript:somefunction(args)>content</a>¡£×¢Ò⣬ÕâôдÊÇÓÐÎÊÌâµÄ£¬ÎÊÌâ¾ÍÔÚÓÚsomefunctionÖеIJÎÊýargsµÄÖµ²»Äܺ¬Óпոñ£¬·ñÔòä¯ÀÀÆ÷»áÈÏΪ¿Õ¸ñºóÃæµÄÄÚÈÝÊÇ<a>±êÇ©µÄij¸öÊôÐÔ£¬ÕýÈ·µÄд·¨Ó¦¸ÃÊÇÓÃÒýºÅ½«javascript:somefunction(args)ÒýÆðÀ´¡£ÁíÍ⻹ÓÐÒ»ÖÖ·½·¨¿É²»±Ø¼ÓÕâ¶ÔÒýºÅ£¬ÏȽ«¿ÉÄÜ´ø¿Õ¸ñµÄ²ÎÊýÓÃescapeº¯Êý´¦Àíһϣ¬È»ºóÔÚsomefunctionÖÐÓÃunescapeº¯Êý½âÂë¾ÍÐÐÁË¡£ÖµµÃ×¢ÒâµÄÊÇÓÃencodeURI¡¢decodeURI¼Ó½âÂëÈ´²»Äܳɹ¦¡£
       ÔÚÍøÉÏÕÒÁËÏÂescapeºÍunescape¡¢encodeURIºÍdecodeURI¡¢encodeURIComponentºÍdecodeURIComponentÈý¶Ô×éºÏÖ®¼äµÄÇø±ð£º
escape²»±àÂë×Ö·ûÓÐ69¸ö£º*£¬+£¬-£¬.£¬/£¬@£¬_£¬0-9£¬a-z£¬A-Z
encodeURI²»±àÂë×Ö·ûÓÐ82¸ö£º!£¬#£¬$£¬&£¬'£¬(£¬)£¬*£¬+£¬,£¬-£¬.£¬/£¬:£¬;£¬=£¬?£¬@£¬_£¬~£¬0-9£¬a-z£¬A-Z
encodeURIComponent²»±àÂë×Ö·ûÓÐ71¸ö£º!£¬ '£¬(£¬)£¬*£¬-£¬.£¬_£¬~£¬0-9£¬a-z£¬A-Z
       ¼òµ¥×ܽáÒ»ÏÂÓ÷¨£¬ÔÚ²»¾­¹ýURLµÄʱºò£¬¼´´¿Javascriptµ÷ÓÃÓÃescape£»Éæ¼°URLʱ£¬Í¨³£ÓÃencodeURI¶ÔÕû¸öURL½øÐд¦Àí£¬½öµ±URLÖк¬ÓÐÌØÊâ²ÎÊýʱ£¬¶Ô¸ÃÌØÊâ²ÎÊý¾Ö²¿Ê¹ÓÃencodeURIComponent¡£


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

javascript ʱ¼ä±È½ÏʵÏÖ´úÂë

web¿ª·¢ÖÐÓÐʱÐèÒª¶ÔÊäÈë¿òÖеÄʱ¼ä£¨Ö÷ÒªÊÇ¿ªÊ¼Ê±¼äºÍ½áÊøʱ¼ä£©½øÐбȽϣ¬ÍøÉÏËÑË÷ÁËÒ»·¬£¬·¢ÏÖÓв»ÉÙÊÇÎÞЧµÄ£¬ÒÔÏ·½·¨¾­Ð¡µÜ¼ìÑéȷʵÓÐЧ£¬Ìش˹²Ïí¡££¨Çë¹Ø×¢ºìÉ«²¿·Ö£©
function ValidtorTime(){
var d1 = new Date(document.getElementById('txbfromDate').value.replace(/\-/g, "\/"));
var d2 = new Date(do ......

javascript ÈÕÆÚÏà¼õ

<SCRIPT LANGUAGE="JavaScript"> 
  
  var strDate1 = "2003-06-17";
  var strDate2 = "2004-09-18";        
  //var strDate1 = "2003-06-17 03:03:40.0";
  //var strDate2 = "2004-09-18 12:03:12.0" ......

Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â

Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â
Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â
ÎÄÕ·ÖÀà:WebÇ°¶Ë
 
 
JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖв»¿É»òȱµÄ¶«Î÷£¬²»¹ÜÊÇÒ»¸ö¼òµ¥µÄÍøÒ³»¹ÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²²»¹ÜÄãÊǸßÊÖ»¹ÊDzËÄñ£¬Èç½ñ JavaScript ¿âÔ½À´Ô½Ç¿´ó£¬¿ÉÒÔʤÈÎÐí¶à¸´ÔӵŤ×÷£¬È»¶øͬʱ£¬È ......

JavaScript xmlTree

<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title> JavaScript: xm ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ