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

ÔÚ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 ·½·¨.


Ïà¹ØÎĵµ£º

JavascriptÔÚÍøÒ³µÄÒ³Ãæ¼ÓÔØʱִÐеÄ˳Ðò

Ò»¡¢ÔÚHTMLÖÐǶÈëJavasriptµÄ·½·¨
1¡¢Ö±½ÓÔÚJavascript´úÂë·ÅÔÚ±ê¼Ç¶Ô<script>ºÍ</script>Ö®¼ä
2¡¢ÓÉ<script. />±ê¼ÇµÄsrcÊôÐÔÖƶ¨ÍⲿµÄjsÎļþ
3¡¢·ÅÔÚʼþ´¦Àí³ÌÐòÖУ¬±ÈÈ磺<p nclick="alert('ÎÒÊÇÓÉonclickʼþÖ´ÐеÄJavascript')">µã»÷ÎÒ</p>
4¡¢×÷ΪURLµÄÖ÷Ì壬Õâ¸öURLʹÓÃÌØÊâµÄJ ......

JavaScript¸ôÐбäÉ«

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>JavaScriptʵÏÖ¸ôÐбäÉ«µÄ±í¸ñ</title>
<style>
<!--
.datalist{
 border:1px solid #007108; /* ±í¸ñ±ß¿ò * ......

javascriptʼþ¼àÌý

Ô­ÌûµØÖ·£ºhttp://www.cnblogs.com/AganCN/archive/2009/02/06/1206272.html   ¿¼ÂÇÕâÑùµÄÇéÐÎÔÚIEä¯ÀÀÖд¦Àí£¬ÐèÒªÏìÓ¦Ò³ÃæµÄ°´Å¥µã»÷ʼþ£¬ÓÐÄÄЩ·½·¨ÄØ£¿
£¨1£©onclickÊôÐÔÌí¼Óʼþ´¦Àíº¯Êý
function DoClick()//handler of click event
{

}


test1
......

dygraphs——Ò»¸öºÜìŵÄJavaScript ͼ±í¿â

    dygraphs Ö÷ÒªÓÃÀ´ÏÔʾÃܼ¯Êý¾Ý¡£ËùνһͼʤǧÑÔ£¬dygraphs Éú³ÉµÄͼ±í¿ÉÒÔËæ×ÅÊó±êλÖÃÏÔʾÊý¾Ý£¬ÍÏק·Å´ó£¬Ë«»÷ËõС¡£
    dygraphs ÒÀÀµHTMLµÄ<canvas>±êÇ©£¬¶øÕâ¸ö±êǩ΢ÈíµÄIE Ç¡Ç¡²»Ö§³Ö¡£¹Ù·½ÍøÒ³ÉÏ˵û¹Øϵ£¬ÄãÖ»Òª°üº¬Ò»¸ö½Ðexcanvas µÄJavaScript. ¿â¾ÍÐÐÁË£¬µ«¾ÝÎÒ²âÊ ......

JavaScript HashTable

/**
* ×Ô¼ºµÄ HashTable
* Ô¸½Å±¾ÉñÁ¦ÓëÄãͬÔÚ
*/
function HashTable(){
var values = {};

/** ½«Öµ²åÈë HashTable ÖÐ **/
this.put = function(key, value){
if(key in values){
return false;
}
values[key] = value;
}
/** ¸ù¾Ý key ·µ»Ø value **/
this.find = function(key){
ret ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ