ÔÚjavascriptÖÐ ¶ÁÈ¡ struts2 s:datetimepickerÖеÄÖµ
ÎÒ¿ªÊ¼×öÕâ¸öµÄʱºò
»ñÈ¡ s:datetimepickerÀïÃæµÄÖµÏñÍù³£Ò»Ñù document.forms[0].elemets["date"].value;
µ«ÊÇÔÚ IEä¯ÀÀÆ÷ÖÐ×ÜÊDZ¨Ò»¸ö value Õâ¸ö¶ÔÏó²»´æÔÚ
µ«ÊÇ ÔÚ »ðºüä¯ÀÀÆ÷ÖÐʹÓà document.forms[0].elemets["date"].value; ¿ÉÒÔ
ºóÀ´µ½¹ÙÍøÉϲéÁËһϣ¬
s:datetimepickerÖеÄÖµÔÚjavascriptÖÐÊÇÎÞ·¨ÓÃÆÕͨµÄ·½·¨¶ÁÈ¡µÄ£¬struts2µÄ¹Ù·½Îĵµ¸ø³öÁËÈ¡Öµ¸³ÖµµÄ·½·¨¡£
¼ÙÉèÎÒÃǶ¨ÒåÁËÁ½¸ös:datetimepicker£¬id·Ö±ðÊÇtime1ºÍtime2
<s:datetimepicker id="time1" name="time1" toggleType="explode" value="today" />
<s:datetimepicker id="time2" name="time2" toggleType="explode" value="today" />
ÎÒÃÇÔÚjavascriptÖпÉÒÔͨ¹ýÒÔÏ·½Ê½¶ÁÈ¡ºÍ¸³Öµ
var time1= dojo.widget.byId("time1");
//»ñÈ¡Öµ
var stringtime1 = time1.getValue();
var time2= dojo.widget.byId("time2");
//ÉèÖµ
time2.setValue(stringtime1 );
ÒÔÉÏ´úÂ룬ȡ³ötime1ÖеÄÖµ£¬¸³¸øtime2
ÓеãÏñʵÁ¦ÀàÖзâ×°µÄÒ»¸öget set ·½·¨.
Ïà¹ØÎĵµ£º
Ò»¡¢ÔÚHTMLÖÐǶÈëJavasriptµÄ·½·¨
1¡¢Ö±½ÓÔÚJavascript´úÂë·ÅÔÚ±ê¼Ç¶Ô<script>ºÍ</script>Ö®¼ä
2¡¢ÓÉ<script. />±ê¼ÇµÄsrcÊôÐÔÖƶ¨ÍⲿµÄjsÎļþ
3¡¢·ÅÔÚʼþ´¦Àí³ÌÐòÖУ¬±ÈÈ磺<p nclick="alert('ÎÒÊÇÓÉonclickʼþÖ´ÐеÄJavascript')">µã»÷ÎÒ</p>
4¡¢×÷ΪURLµÄÖ÷Ì壬Õâ¸öURLʹÓÃÌØÊâµÄJ ......
http://203.208.39.132/search?q=cache:CS7gmmmKO1UJ:cdivilly.wordpress.com/2008/09/05/debugging-javascript-on-internet-explorer-mobile/+mobile+ie+debug&cd=2&hl=zh-CN&ct=clnk&gl=cn&client=firefox-a&st_usg=ALhdy2_5z6wqB0HLfTGoC9EDfEwpnra-LQ ......
ÔÌûµØÖ·£ºhttp://www.cnblogs.com/AganCN/archive/2009/02/06/1206272.html ¿¼ÂÇÕâÑùµÄÇéÐÎÔÚIEä¯ÀÀÖд¦Àí£¬ÐèÒªÏìÓ¦Ò³ÃæµÄ°´Å¥µã»÷ʼþ£¬ÓÐÄÄЩ·½·¨ÄØ£¿
£¨1£©onclickÊôÐÔÌí¼Óʼþ´¦Àíº¯Êý
function DoClick()//handler of click event
{
}
test1
......
dygraphs Ö÷ÒªÓÃÀ´ÏÔʾÃܼ¯Êý¾Ý¡£ËùνһͼʤǧÑÔ£¬dygraphs Éú³ÉµÄͼ±í¿ÉÒÔËæ×ÅÊó±êλÖÃÏÔʾÊý¾Ý£¬ÍÏק·Å´ó£¬Ë«»÷ËõС¡£
dygraphs ÒÀÀµHTMLµÄ<canvas>±êÇ©£¬¶øÕâ¸ö±êǩ΢ÈíµÄIE Ç¡Ç¡²»Ö§³Ö¡£¹Ù·½ÍøÒ³ÉÏ˵û¹Øϵ£¬ÄãÖ»Òª°üº¬Ò»¸ö½Ðexcanvas µÄJavaScript. ¿â¾ÍÐÐÁË£¬µ«¾ÝÎÒ²âÊ ......