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

ÍÆ¼ö¼æÈÝ IE¡¢ FireFox µÄ javascript ÈÕÀú¿Ø¼þ

ÍÆ¼ö¼æÈÝ IE¡¢ FireFox µÄ javascript ÈÕÀú¿Ø¼þ
Ô­´´×÷Õߣºº®Óð·ã£¨cityhunter172£© 
Ò»¡¢¼ò½éÓëÉùÃ÷
            ´ËÈÕÀú¿Ø¼þÊÇ CSDN ÍøÓÑ KimSoft  µÄ×÷Æ·£ºhttp://blog.csdn.net/kimsoft/archive/2006/05/24/753225.aspx  ¡£½çÃæÇåˬ£¬´¿½Å±¾ÔËÐУ¬ÊµÏÖÁËÈÕÆÚµÄ»ØÏÔ¹¦ÄÜ£¬×îÖØÒªµÄÊǼæÈÝ FireFox ¡£
ΪÁËÊÊÓ¦¸ü¶àÐèÇó£¬ÎÒÕë¶Ô¸Ã¿Ø¼þ×öÁËÒÔÏÂÐ޸ģº
          1¡¢·µ»ØÈÕÆÚµÄÊä³ö¸ñʽ£¬ÎҸijÉÁËÓÉÓû§ÒÔ²ÎÊýÐÎʽָ¶¨ Style
          2¡¢¹ØÓÚ IE ÖÐ <select> ÏÂÀ­¿òµÄ´¦Àí£¬²»µ÷ÓÃÒþ²Ø£¬¶øÊÇÓÃ<iframe>Ö±½Ó¸²¸Ç
          3¡¢²»Ê¹Óà //this.panel.style.visibility = "hidden"; ÒòΪËüÔÚ FireFox ÖлáÑÚ¸Ç֮ǰ³öÏÖ¹ýµØ·½ÏÂÃæµÄÁ´½ÓÎÄ×Ö£¬¶øÊǸÄÓà this.panel.style.display = "none";
          4¡¢ÐÂÔöʧȥ½¹µãºó£¬Õû¸ö WebCalendar ¼´Òþ²Ø
´Ë¿Ø¼þ°æÈ¨¹éÊôÓÚ  KimSoft   £¬´ó¼ÒÔÚʹÓùý³ÌÖÐÇëÎðɾ³ýÎÄÖеİæÈ¨ÉùÃ÷£¬Ð»Ð»£¡ÔٴθÐл  KimSoft  µÄ¿ªÔ´¡£
[Ô­×÷Õß kimsoft ÓÚ2006-11-28 22:00:00 ·¢±í£º´Ë´úÂë¿ÉÒÔÈÎÒâÐ޸ġ¢»¶Ó­´«²¥]
2006 - 12- 03 £¬ÎÒÕë¶ÔĿǰ³öÏֵĠBUG ×öÁËÒÔÏÂÐÞÕý£º
          1¡¢°ÑÔ­¿Ø¼þÖÐµÄ <form> ±ä³É <div>£¬½â¾ö²»ÄÜÔÚÒ³ÃæµÄ form ±êÇ©ÖÐÒýÓøýű¾µÄ BUG
          2¡¢ÐÂÔöÍ»³öÒÑÑ¡ÔñµÄÈͮ򵀱³¾°É«
          3¡¢²»ÐèҪÿ´ÎʹÓö¼³õʼ»¯ÊµÀý£¬ÕûÕÅÒ³Ãæ¹²ÓÃÒ»¸öʵÀý£¬¼Ó¿ìÏÔʾËÙ¶È        
¶þ¡¢Ð޸ĺóµÄ´úÂë
 ÒÔÏÂÊÇ WebCalendar.js Ð޸ĺóµÄÔ´Âë 
<!--
var cal;
var isFocus=false; //ÊÇ·ñΪ½¹µã
//ÒÔÉÏΪ  º®Óð·ã 2006-06-25 Ìí¼ÓµÄ±äÁ¿
//Ñ¡ÔñÈÕÆÚ → ÓÉ º®Óð·ã 2006-06-25 Ìí¼Ó
function SelectDate(obj,strFormat)
...{
   &


Ïà¹ØÎĵµ£º

JavaScript´¦ÀíJson

JSON(JavaScript Object Notation) ÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ£¬Ò×ÓÚÔĶÁºÍ±àд£¬Í¬Ê±Ò²Ò×ÓÚ»úÆ÷½âÎöºÍÉú³É¡£Ëü»ùÓÚECMA262ÓïÑԹ淶£¨1999-12µÚÈý°æ£©ÖÐJavaScript±à³ÌÓïÑÔµÄÒ»¸ö×Ó¼¯¡£ JSON²ÉÓÃÓë±à³ÌÓïÑÔÎ޹صÄÎı¾¸ñʽ£¬µ«ÊÇҲʹÓÃÁËÀàCÓïÑÔ£¨°üÀ¨C£¬ C++£¬ C#£¬ Java£¬ JavaScript£¬ Perl£¬ PythonµÈ£©µÄϰ¹ß£¬ÕâÐ©ÌØÐ ......

Javascriptѧϰ±Ê¼Ç

Ò». »ù´¡Æª
  1.  Javascriptѧϰ±Ê¼Ç1——Êý¾ÝÀàÐÍ
  2.  Javascriptѧϰ±Ê¼Ç2——º¯Êý
  3.  Javascriptѧϰ±Ê¼Ç3——×÷ÓÃÓò
  4.  Javascriptѧϰ±Ê¼Ç4——Evalº¯Êý
  5.  Javascriptѧϰ±Ê¼ ......

JavaScriptÎļþÒýÓÃJavaScriptÎļþµÄ·½·¨

·½·¨Ò»£º
Js_file01.js 
========
//³ÌÐò´úÂë
document.write(" <script  language=\"javascript\"  src="\/com\/ Js_file02.js \"  > <\/script>"); 
 
·½·¨¶þ£º
html´úÂë
³ÌÐò´úÂë
<html>
<body>
<input type="button" value="ok" onclick="ja ......

ÔÚjavascriptÖÐ ¶ÁÈ¡ struts2 s:datetimepickerÖеÄÖµ

ÎÒ¿ªÊ¼×öÕâ¸öµÄʱºò
»ñÈ¡ s:datetimepickerÀïÃæµÄÖµÏñÍù³£Ò»Ñù document.forms[0].elemets["date"].value;
µ«ÊÇÔÚ IEä¯ÀÀÆ÷ÖÐ×ÜÊDZ¨Ò»¸ö  value Õâ¸ö¶ÔÏó²»´æÔÚ
µ«ÊÇ ÔÚ »ðºüä¯ÀÀÆ÷ÖÐʹÓà document.forms[0].elemets["date"].value; ¿ÉÒÔ
ºóÀ´µ½¹ÙÍøÉϲéÁËһϣ¬
 
s:datetimepickerÖеÄÖµÔÚjavascriptÖÐÊÇ ......

document Îĵ²¶ÔÏóÏê½â(JavaScript½Å±¾ÓïÑÔÃèÊö)

[×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд£¬·ñÔò»áÌáʾÄãÒ»¸ö´íÎóÐÅÏ¢ "ÒýÓõÄÔªËØÎª¿Õ»òÕß²»ÊǶÔÏó"]
========================================================================
¶ÔÏóÊôÐÔ:
document.title             //ÉèÖÃÎÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ