锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久国产精品毛片,久久精品一本久久99精品,国产精品亚洲片夜色在线http://www.aygfsteel.com/CopyHoo/category/36547.html涓嶆噦錛屾參鎱㈡噦銆?/description>zh-cnTue, 16 Dec 2008 20:09:56 GMTTue, 16 Dec 2008 20:09:56 GMT60Ajax 璇鋒眰緇撴灉榪斿洖浜嗭紝閭d箞璇鋒眰鍚庣殑緇撴灉鍦ㄧ綉欏典腑鐨勬牸寮忚濡備綍澶勭悊錛?/title><link>http://www.aygfsteel.com/CopyHoo/articles/246414.html</link><dc:creator>CopyHoo</dc:creator><author>CopyHoo</author><pubDate>Mon, 15 Dec 2008 06:42:00 GMT</pubDate><guid>http://www.aygfsteel.com/CopyHoo/articles/246414.html</guid><wfw:comment>http://www.aygfsteel.com/CopyHoo/comments/246414.html</wfw:comment><comments>http://www.aygfsteel.com/CopyHoo/articles/246414.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/CopyHoo/comments/commentRss/246414.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/CopyHoo/services/trackbacks/246414.html</trackback:ping><description><![CDATA[<br /> 浠ュ墠欏甸潰鑾峰彇緇撴灉錛岀劧鍚庡啀鐢?jstl 絳夋爣絳劇洿鎺ュ湪欏甸潰鑳℃崳涓緲伙紝姣斿鏀瑰彉鏄劇ず鏃ユ湡鐨勬牸寮忥細<br /> <fmt:formatDate patter="yyyy-MM-dd" value="${comm.comm_create_time}" /><br /> 浣嗘槸鐜板湪鐢?Ajax 灝嗙粨鏋滆繑鍥炰簡錛岄〉闈㈢殑榪欎簺鏍煎紡璇ュ浣曞鐞嗗憿錛燂紙鏄湪欏甸潰澶勭悊鏁版嵁鏍煎紡鍛紵榪樻槸鍦?Controller 涓洿鎺ユ牸寮忓寲浣犺鐨勫瓧涓詫紝鐒跺悗浼犻掑嚭鏉ワ紝閭d箞欏甸潰浠呬粎璐熻矗 innerHTML 鎴栬?Dom 鐨?append ?錛?br /> 榪欎釜鏆傛椂涓嶈錛堣繃涓浼氬効璁ㄨ錛夈?br /> 鐜板湪欏圭洰鏈潵灝辨病鏈夎繖涓姹傦紝鎵浠ヨ嚜宸辯殑榪欎竴鍧楀緱鍥犱負 ajax 鑰岀‖鍚炰笅鍘伙紝鍘熸湰欏甸潰鐨?<br /> <fmt ... /> 鍦ㄨ繖閲屾槸涓嶆槸鍙互鐢?<br /> innerHTML = '<fmt:formatDate pattern="yyyy-MM-dd" value="${comm.comm_create_time}" /> '; <br /> 榪欐牱 innerHTML 鍒?jsp 欏甸潰鍚庯紝嫻忚鍣ㄤ細鎬庝箞瑙f瀽榪欎竴孌靛憿錛熸槸涓嶆槸灝?<fmt:> 褰撳仛鏂囨湰瀛椾覆鍛紵榪樻槸褰撳仛姝e父鐨勬爣絳撅紵 濡傛灉鍙傜収 innerHTML = '<b>hello world</b>' 浼氫嬌鏍囩 <b> 鐢熸晥錛屼篃灝辨槸璇翠細灝?innerHTML 涓殑鏍囩榪涜瑙f瀽錛岄偅涔?innerHTML = '<fmt: ... /> ' 涔熸槸鍙互琚В鏋愮殑錛?br /> 浜庢槸灝辮繖涔堣繘琛屼簡灝濊瘯錛?br /> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #0000ff">var</span><span style="color: #000000"> div_comms </span><span style="color: #000000">=</span><span style="color: #000000"> document.getElementById('comm');                      <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                       </span><span style="color: #0000ff">var</span><span style="color: #000000"> str </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">""</span><span style="color: #000000">;<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                       <br /> <img id="Codehighlighter1_143_1386_Open_Image" onclick="this.style.display='none'; Codehighlighter1_143_1386_Open_Text.style.display='none'; Codehighlighter1_143_1386_Closed_Image.style.display='inline'; Codehighlighter1_143_1386_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" /><img id="Codehighlighter1_143_1386_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_143_1386_Closed_Text.style.display='none'; Codehighlighter1_143_1386_Open_Image.style.display='inline'; Codehighlighter1_143_1386_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedBlock.gif" align="top" />                       </span><span style="color: #0000ff">for</span><span style="color: #000000">(</span><span style="color: #0000ff">var</span><span style="color: #000000"> i</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">;i</span><span style="color: #000000"><</span><span style="color: #000000">data_comms.length;i</span><span style="color: #000000">++</span><span style="color: #000000">)</span><span id="Codehighlighter1_143_1386_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span id="Codehighlighter1_143_1386_Open_Text"><span style="color: #000000">{<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                              <br /> <img id="Codehighlighter1_175_332_Open_Image" onclick="this.style.display='none'; Codehighlighter1_175_332_Open_Text.style.display='none'; Codehighlighter1_175_332_Closed_Image.style.display='inline'; Codehighlighter1_175_332_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_175_332_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_175_332_Closed_Text.style.display='none'; Codehighlighter1_175_332_Open_Image.style.display='inline'; Codehighlighter1_175_332_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                             </span><span id="Codehighlighter1_175_332_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/**/</span><span id="Codehighlighter1_175_332_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                               <div class="time"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                                 <fmt:formatDate pattern="yyyy-MM-dd" value="${comm.comm_create_time}" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                             </div><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                              </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                             </span><span style="color: #0000ff">var</span><span style="color: #000000"> time </span><span style="color: #000000">=</span><span style="color: #000000"> '</span><span style="color: #000000"><</span><span style="color: #000000">div class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">time</span><span style="color: #000000">"</span><span style="color: #000000">><</span><span style="color: #000000">fmt:formatDate pattern</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">yyyy-MM-dd</span><span style="color: #000000">"</span><span style="color: #000000"> value</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">' + data_comms[i].comm_create_time + '</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></</span><span style="color: #000000">div</span><span style="color: #000000">></span><span style="color: #000000">';<br /> <img id="Codehighlighter1_485_670_Open_Image" onclick="this.style.display='none'; Codehighlighter1_485_670_Open_Text.style.display='none'; Codehighlighter1_485_670_Closed_Image.style.display='inline'; Codehighlighter1_485_670_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_485_670_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_485_670_Closed_Text.style.display='none'; Codehighlighter1_485_670_Open_Image.style.display='inline'; Codehighlighter1_485_670_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                           </span><span id="Codehighlighter1_485_670_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/**/</span><span id="Codehighlighter1_485_670_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                            <h3 title="${comm.comm_user }"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                                 <y5k:substring length="12"<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                                    text="${comm.comm_user }" append="<img alt="" src="http://www.aygfsteel.com/Images/dot.gif" />" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                                :<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                            </h3><br/>              <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                            </span><span style="color: #008000">*/</span></span><span style="color: #000000">                            <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                            </span><span style="color: #0000ff">var</span><span style="color: #000000"> user </span><span style="color: #000000">=</span><span style="color: #000000"> '</span><span style="color: #000000"><</span><span style="color: #000000">h3 title</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">' + data_comms[i].comm_user + '</span><span style="color: #000000">"</span><span style="color: #000000">><</span><span style="color: #000000">y5k:substring length</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">12</span><span style="color: #000000">"</span><span style="color: #000000"> text</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">' + data_comms[i].comm_user + '</span><span style="color: #000000">"</span><span style="color: #000000"> append</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></span><span style="color: #000000">:</span><span style="color: #000000"></</span><span style="color: #000000">h3</span><span style="color: #000000">><</span><span style="color: #000000">br</span><span style="color: #000000">/></span><span style="color: #000000">';                                 <br /> <img id="Codehighlighter1_877_1019_Open_Image" onclick="this.style.display='none'; Codehighlighter1_877_1019_Open_Text.style.display='none'; Codehighlighter1_877_1019_Closed_Image.style.display='inline'; Codehighlighter1_877_1019_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_877_1019_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_877_1019_Closed_Text.style.display='none'; Codehighlighter1_877_1019_Open_Image.style.display='inline'; Codehighlighter1_877_1019_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                            </span><span id="Codehighlighter1_877_1019_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/**/</span><span id="Codehighlighter1_877_1019_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                               <h2><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                                <y5k:substring length="18"<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                                    text="${comm.comm_content }" append="<img alt="" src="http://www.aygfsteel.com/Images/dot.gif" />" /><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                            </h2> <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                             </span><span style="color: #008000">*/</span></span><span style="color: #000000"> <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                            </span><span style="color: #0000ff">var</span><span style="color: #000000"> content </span><span style="color: #000000">=</span><span style="color: #000000"> '</span><span style="color: #000000"><</span><span style="color: #000000">h2</span><span style="color: #000000">><</span><span style="color: #000000">y5k:substring length</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">18</span><span style="color: #000000">"</span><span style="color: #000000"> text</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">' + data_comms[i].comm_user + '</span><span style="color: #000000">"</span><span style="color: #000000"> append</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000"><img alt="" src="http://www.aygfsteel.com/Images/dot.gif" /></span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></span><span style="color: #000000"> </span><span style="color: #000000"></</span><span style="color: #000000">h2</span><span style="color: #000000">></span><span style="color: #000000">'; <br /> <img id="Codehighlighter1_1157_1217_Open_Image" onclick="this.style.display='none'; Codehighlighter1_1157_1217_Open_Text.style.display='none'; Codehighlighter1_1157_1217_Closed_Image.style.display='inline'; Codehighlighter1_1157_1217_Closed_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" /><img id="Codehighlighter1_1157_1217_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_1157_1217_Closed_Text.style.display='none'; Codehighlighter1_1157_1217_Open_Image.style.display='inline'; Codehighlighter1_1157_1217_Open_Text.style.display='inline';" alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" />                           </span><span id="Codehighlighter1_1157_1217_Closed_Text" style="border-right: #808080 1px solid; border-top: #808080 1px solid; display: none; border-left: #808080 1px solid; border-bottom: #808080 1px solid; background-color: #ffffff">/**/</span><span id="Codehighlighter1_1157_1217_Open_Text"><span style="color: #008000">/*</span><span style="color: #008000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                               <div class="hr_r"></div>     <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" />                            </span><span style="color: #008000">*/</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                           </span><span style="color: #0000ff">var</span><span style="color: #000000"> hr </span><span style="color: #000000">=</span><span style="color: #000000"> '</span><span style="color: #000000"><</span><span style="color: #000000">div class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">hr_r</span><span style="color: #000000">"</span><span style="color: #000000">></</span><span style="color: #000000">div</span><span style="color: #000000">></span><span style="color: #000000">';                        <br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                           alert(time);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/InBlock.gif" align="top" />                            str </span><span style="color: #000000">=</span><span style="color: #000000"> str </span><span style="color: #000000">+</span><span style="color: #000000"> (time </span><span style="color: #000000">+</span><span style="color: #000000"> user </span><span style="color: #000000">+</span><span style="color: #000000"> content </span><span style="color: #000000">+</span><span style="color: #000000"> hr);<br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" />                       }</span></span><span style="color: #000000"><br /> <img alt="" src="http://www.aygfsteel.com/images/OutliningIndicators/None.gif" align="top" />                       div_comms.innerHTMl </span><span style="color: #000000">=</span><span style="color: #000000"> str;</span></div> <br /> 鍒╃敤 FF 榪涜浜嗘煡鐪嬶紝欏甸潰浠?div 鐨刬d 涓?comm 鐨勪綅緗紑濮嬶紝灝變竴鐗囩┖鐧戒簡銆傘?br /> 涓轟粈涔堬紵<br /> 浜庢槸鍒╃敤 FireBug 鏌ョ湅浜?FF 鐨勯〉闈㈢殑婧愮爜錛屽彲浠ョ湅鍒幫紝鎴戜滑 innerHTML 鐨勪笢瑗垮叾瀹為兘鍦ㄩ〉闈腑錛屼絾鏄緢濂囨殑鏄紝娌℃湁鏄劇ず鍑烘潵錛熶負浠涔堬紵榪欏氨鍙兘鏄?HTML 鏍囩鐨勯敊璇殑浣跨敤錛侊紒錛佸氨鍍忎綘鏈?<title> 鐨勫紑濮嬶紝浣嗘槸娌℃湁 </title > 緇撴潫鏍囩涓鏍鳳紝浣犵殑欏甸潰灝變細鏄┖鐧姐?br /> 浜庢槸鐪嬩簡鎴?inner 鐨勫嚑涓爣絳俱傛亶鐒跺ぇ鎮?(鎭嶇劧澶ч浘) :<br /> <span style="color: #0000ff">var</span><span style="color: #000000"> time </span><span style="color: #000000">=</span><span style="color: #000000"> '</span><span style="color: #000000"><</span><span style="color: #000000">div class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">time</span><span style="color: #000000">"</span><span style="color: #000000">><</span><span style="color: #000000">fmt:formatDate pattern</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">yyyy-MM-dd</span><span style="color: #000000">"</span><span style="color: #000000"> value</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">' + data_comms[i].comm_create_time + '</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">/></</span><span style="color: #000000">div</span><span style="color: #000000">></span><span style="color: #000000">';</span><br /> 鏈鍚庤В閲婄殑緇撴灉涓猴細<br /> var time = '<font style="background-color: #cce8cc"><div class="time"><fmt:formatDate pattern="yyyy-MM-dd" value="1229321538000" /></div></font>';<br /> 涔熷氨鏄 value= data_comms[i].comm_create_time 瑙i噴鐨勭粨鏋滀負 1229321538000<br /> 鎴戝皢 <font style="background-color: #cce8cc"><div class="time"><fmt:formatDate pattern="yyyy-MM-dd" value="1229321538000" /></div></font><br /> 鎷瘋礉鍒?jsp 欏甸潰鍗曠嫭鎵ц錛岀粨鏋滃氨鏄繖涓鍙ヤ互鍙婅繖涓鍙ヤ笅闈㈢殑璇彞鍦ㄩ〉闈笂瑙i噴涓嶅嚭鏉ャ?br /> 浜庢槸鎴戝張璇曚簡 <br /> <font style="background-color: #cce8cc"><div class="time"><fmt:formatDate pattern="yyyy-MM-dd" value="2008-12-12  10:10:10.4" /></div><br /> 榪樻槸涓嶈錛屽彧鏈夋煡鐪?API 浜嗐?br /> <br /> =============================================================<br /> <p><span><font face="Times New Roman"><fmt:formatDate></font> </span><span>鏍囩鐢ㄤ簬鏍煎紡鍖栨棩鏈熴傚畠鐨勫睘鎬у拰鎻忚堪濡傝〃</span> <span><font face="Times New Roman">9.23</font> </span><span>鎵紺猴細</span> </p> <p><span>琛?/span> <span><font face="Arial">9.23</font> </span><span>銆</span> <span><font face="Arial"><fmt:<span>formatDate</span>></font> </span><span>鏍囩灞炴у拰璇存槑</span> </p> <div align="center"> <table cellspacing="0" cellpadding="0" width="448" border="1"> <tbody> <tr> <td width="105"> <p><span>灞炴?/span> </p> </td> <td width="343"> <p><span>鎻忚堪</span> </p> </td> </tr> <tr> <td width="105"> <p><span><font face="Times New Roman">value</font> </span></p> </td> <td width="343"> <p><span>鏍煎紡鍖栫殑鏃ユ湡錛岃灞炴х殑鍐呭搴旇鏄?/span> <span><font face="Times New Roman">java.util.Date</font> </span><span>綾誨瀷鐨勫疄渚?/span> </p> </td> </tr> <tr> <td width="105"> <p><span><font face="Times New Roman">type</font> </span></p> </td> <td width="343"> <p><span>鏍煎紡鍖栫殑綾誨瀷</span> </p> </td> </tr> <tr> <td width="105"> <p><span><font face="Times New Roman">pattern</font> </span></p> </td> <td width="343"> <p><span>鏍煎紡鍖栨ā寮?/span> </p> </td> </tr> <tr> <td width="105"> <p><span><font face="Times New Roman">var</font> </span></p> </td> <td width="343"> <p><span>緇撴灉淇濆瓨鍙橀噺</span> </p> </td> </tr> <tr> <td width="105"> <p><span><font face="Times New Roman">scope</font> </span></p> </td> <td width="343"> <p><span>鍙橀噺鐨勪綔鐢ㄨ寖鍥?/span> </p> </td> </tr> <tr> <td width="105"> <p><span><font face="Times New Roman">timeZone</font> </span></p> </td> <td width="343"> <p><span>鎸囧畾鏍煎紡鍖栨棩鏈熺殑鏃跺尯</span> </p> </td> </tr> </tbody> </table> </div> <p><span><font face="Times New Roman"><fmt:formatDate></font> </span><span>鏍囩涓?/span> <span><font face="Times New Roman"><fmt:timeZone></font> </span><span>銆?/span> <span><font face="Times New Roman"><fmt:setTimeZone></font> </span><span>涓ょ粍鏍囩鐨勫叧緋誨瘑鍒囥傝嫢娌℃湁鎸囧畾</span> <span>timeZone灞炴э紝</span> <span>涔熷彲浠ラ氳繃</span> <span><font face="Times New Roman"><fmt:timeZone></font> </span><span>銆?/span> <span><font face="Times New Roman"><fmt:setTimeZone></font> </span><span>涓ょ粍鏍囩璁懼畾鐨勬椂鍖烘潵鏍煎紡鍖栨渶鍚庣殑緇撴灉銆?/span></p> <br /> =============================================================<br />  榪欓噷鏈変袱涓皬緇嗚妭錛?br /> 1. 浠?Contorller 浼犻掕繃鏉ョ殑 Date 綾誨瀷鐨勫煎湪 js 涓繘琛岃幏鍙栫殑鏃跺欙紝浼氳鑷姩榪涜 getTime() 鑰屽彉涓哄洖鍘繪縐掓暟 銆傛瘮濡傝繖閲岀殑 data_comms[i].comm_creat_time 灝辮瑙i噴涓轟簡綾諱技 1229321538000 鐨勭粨鏋溿?br /> 2. fmt:formatDate 鐨?value 涓瀹氳鏄竴涓?java.util.Date 綾誨瀷鐨勫弬鏁般?br /> <br /> </font><br /> <br /> <img src ="http://www.aygfsteel.com/CopyHoo/aggbug/246414.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/CopyHoo/" target="_blank">CopyHoo</a> 2008-12-15 14:42 <a href="http://www.aygfsteel.com/CopyHoo/articles/246414.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>涓涓彂閫?Ajax 鍙戦佽姹傜殑渚嬪瓙http://www.aygfsteel.com/CopyHoo/articles/245114.htmlCopyHooCopyHooMon, 08 Dec 2008 14:25:00 GMThttp://www.aygfsteel.com/CopyHoo/articles/245114.htmlhttp://www.aygfsteel.com/CopyHoo/comments/245114.htmlhttp://www.aygfsteel.com/CopyHoo/articles/245114.html#Feedback0http://www.aygfsteel.com/CopyHoo/comments/commentRss/245114.htmlhttp://www.aygfsteel.com/CopyHoo/services/trackbacks/245114.html
function getXMLHTTPRequest(){
   
var xRequest = null
   
if (window.XMLHttpRequest){
     xRequest 
= new XMLHttpRequest() ;  // Mozilla / Safari
  }
else if ( typeof ActiveXObject  != 'undefined'){
     xRequest 
= new ActiveObject("Microsoft.XMLHTTP");   // IE
  }

  
return xRequest ;
}


鍚屾牱鐨勶紝鎴戜滑浣跨敤瀵硅薄媯嫻嬫潵嫻嬭瘯鏄惁鏀寔鍘熺敓鐨?XMLHttpRequest 瀵硅薄錛屽鏋滀笉鏀寔錛屽啀嫻嬭瘯鏄惁鏀寔 Activex 瀵硅薄銆傚湪涓よ呴兘涓嶆敮鎸佺殑嫻忚鍣ㄤ腑錛屾垜浠畝鍗曠殑鏀懼洖 null 銆?

鍚戞湇鍔″櫒鍙戦佽姹?(緇欏畠浼犻掍竴涓湇鍔″櫒欏甸潰鐨?URL,榪欎釜欏甸潰灝嗙敓鎴愭暟鎹?

function sendRequest(url,params,HttpMehtod){
  
if!HttpMethod ){
    HttpMethod 
= 'POST';
 }

 
var req = getXMLHTTPRequest();
 
if(req){
   req.oepn(HttpMethod,url,
true);
   req.setRequestHeader('Content
-Type','application/x-www-form-urlencoded'); 
   req.send(params);
 }

}


XMLHttpRequest 鏀寔澶ч噺鐨凥TTP 璋冪敤璇箟錛屽寘鎷敤鏉ュ姩鎬佺敓鎴愰〉闈㈢殑鍙夋煡璇㈠瓧絎︿覆鍙傛暟錛堜綘鍙兘宸茬粡鐭ラ亾榪欎簺 CGI 鍙傛暟銆丗ORM 鍙傛暟鎴栬?ServletRequest鍙傛暟錛屽彇鍐充簬鏈嶅姟鍣ㄧ鐨勫紑鍙戣儗鏅級銆?

sendRequest() 鏂規硶鍖呭惈鐨勭浜屼釜鍜岀涓変釜鍙傛暟閮芥槸鍙夊弬鏁幫紝澶ч儴鍒嗘儏鍐典笅閮界敤涓嶄笂銆傞粯璁や嬌鐢≒ost 鏂規硶鏉ヨ幏鍙栬祫婧愶紝鍦ㄨ姹傜殑涓婚閮ㄥ垎涓嶉渶瑕佷紶閫掍換浣曞弬鏁般?br />
鍒嗛厤涓涓洖璋冨嚱鏁? 鍦ㄦ湭鏉ユ煇涓笉紜畾鐨勬椂鍒伙紝褰撶粨鏋滆繑鍥炵殑鏃跺欙紝灝嗕細鎵ц榪欐浠g爜銆?br /> window.onload 鍑芥暟灝辨槸涓涓洖璋冨嚱鏁般?br />
浣跨敤鍥炶皟鍑芥暟:

var READY_STATE_UNIITIALIZED = 0;
var READY_STATE_LOADING = 1;
var READY_STATE_LOADED = 2;
var READY_STATE_INTERACTIVE =3 ;
var READY_STATE_COMPLETE = 4;
var req;

function sednRequest(url,params,HttpMethod){
  
if(!HttpMethodd){
   HttpMthod 
= 'GET';
 }

 req 
= getXMLHTTPRequest();
 
if(req){
   req.onreadystatechange 
= onReadyStateChange;
   req.open(HttpMethod,url,
true);
  req.setRequestHeader('Content
-Type','application/x-www-form-urlencoded');
  req.send(params);
 }

}


function onReadyStateChange(){
  
var ready = req.readyState;;
  
var data = null;
  
if(ready == READY_STATE_COMPLETE){
     data 
= req.responseText;
  }
else{
     data 
= 'loading  [' + ready + ']';
  }

 
//  do something with the data 
}
 

榪欓噷灝嗚姹傚璞″0鏄庝負涓涓叏灞瀵硅薄錛岃繖鏍鋒湁鍒╀簬淇濇寔浜嬫儏鐨勭畝鍗曪紝閭e浣曞悓鏃跺彂閫佸涓姹傘傘?br /> 寰呯畫銆傘傘傘?

CopyHoo 2008-12-08 22:25 鍙戣〃璇勮
]]>
鑾峰彇 XMLDocumenthttp://www.aygfsteel.com/CopyHoo/articles/245111.htmlCopyHooCopyHooMon, 08 Dec 2008 14:12:00 GMThttp://www.aygfsteel.com/CopyHoo/articles/245111.htmlhttp://www.aygfsteel.com/CopyHoo/comments/245111.htmlhttp://www.aygfsteel.com/CopyHoo/articles/245111.html#Feedback0http://www.aygfsteel.com/CopyHoo/comments/commentRss/245111.htmlhttp://www.aygfsteel.com/CopyHoo/services/trackbacks/245111.html

<script type="text/javascript">
  fucntion getXMLDocument()
{
    
var xDoc = null;
    
if(document.implementation && document.implementation.createDocument){
    xDoc 
= document.implementaion.createDocument('','',null) ; // Mozilla / Safari
  }
else if(typeof ActiveXObject != 'undefined'){
  
var msXmlAx = null;
  
try{
    msXmlAx 
= new ActiveXObject("Msxml2.DOMDocument"); // 杈冩柊鐗堟湰鐨?nbsp;IE 嫻忚鍣?/span>
  }
catch(e){
    msXmlAx 
= new ActiveXObject("Msxml.DOMDocument"); // 杈冭佺増鏈殑 IE 嫻忚鍣?/span>
  }
 
  xDoc 
= msXmlAx;
}

  
if(xDoc == null || typeof xDoc.load == 'undefined'){
   xDoc 
= null;
 }

  
return xDoc;
  }

</script>


鍦ㄥぇ澶氭暟嫻忚鍣ㄤ腑錛岃繖涓嚱鏁伴兘鑳借繑鍥炰竴涓叿鏈夌浉鍚?API 鐨?XmlDocument 瀵硅薄錛屽敖綆″湪涓嶅悓鐨勬祻瑙堝櫒涓垱寤烘枃妗g殑鏂瑰紡鏈夊緢澶х殑涓嶅悓銆?br />
榪欐浠g爜媯鏌ユ枃妗e璞℃槸鍚︽敮鎸佸垱寤轟竴涓師鐢熺殑 XmlDocument 瀵硅薄鎵闇鐨?implementation 灞炴э紙鍦ㄦ渶榪戠殑 Mozilla 鍜?Safari 嫻忚鍣ㄤ腑閮藉彲浠ユ壘鍒拌繖涓睘鎬э級銆傚鏋滄病鏈夋壘鍒幫紝瀹冨皢嫻嬭瘯嫻忚鍣ㄦ槸鍚︽敮鎸?ActiveX 瀵硅薄(鍙湁寰蔣鐨勬祻瑙堝櫒鎵嶈兘澶熸敮鎸?銆?

CopyHoo 2008-12-08 22:12 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 丹江口市| 安义县| 海原县| 蒲江县| 西宁市| 阳东县| 唐山市| 普兰店市| 临湘市| 习水县| 杂多县| 永康市| 华宁县| 简阳市| 乌兰县| 盐源县| 杂多县| 全州县| 兖州市| 沈丘县| 乌审旗| 广汉市| 宜春市| 青海省| 岚皋县| 钟祥市| 锡林浩特市| 枣强县| 凤庆县| 武义县| 巴塘县| 宜丰县| 宜君县| 鸡泽县| 来安县| 信宜市| 喜德县| 射洪县| 雷山县| 自治县| 托里县|