锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲性猛交XXXX,亚洲中文字幕无码爆乳app,亚洲国产精品VA在线看黑人http://www.tkk7.com/ldwblog/category/41077.html鎬佸害鍐沖畾涓鍒?/description>zh-cnTue, 07 Jan 2020 10:48:02 GMTTue, 07 Jan 2020 10:48:02 GMT60涓漢鍏紬鍙楓孞ava鐖卞ソ鑰呯ぞ鍖恒嶉珮璐ㄩ噺鍘熷垱鏂囩珷鎸佺畫杈撳嚭錛屾榪庡悇浣嶅皬涓誨叧娉?/title><link>http://www.tkk7.com/ldwblog/archive/2019/10/30/434887.html</link><dc:creator>David1228</dc:creator><author>David1228</author><pubDate>Wed, 30 Oct 2019 06:10:00 GMT</pubDate><guid>http://www.tkk7.com/ldwblog/archive/2019/10/30/434887.html</guid><wfw:comment>http://www.tkk7.com/ldwblog/comments/434887.html</wfw:comment><comments>http://www.tkk7.com/ldwblog/archive/2019/10/30/434887.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/ldwblog/comments/commentRss/434887.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/ldwblog/services/trackbacks/434887.html</trackback:ping><description><![CDATA[blogjava緗戠珯涓庡崥瀹㈠洯鍚堝茍浜嗭紝瀵筨logjava榪樻槸鏈夋劅鎯呯殑銆?br />騫朵笖blogjava緗戠珯鍙戝竷鐨勬枃绔犳槸鍦ㄥ崥瀹㈠洯棣栭〉鐪嬩笉鍒扮殑銆?br />blogjava緗戠珯棣栭〉鑳界湅鍒幫紝浣犲彲浠ョ偣鍑繪爣棰樿繘鍏ュ彲浠ョ湅鍒板浘鐗囦簩緇寸爜淇℃伅銆?br /><br /><strong style="color: red; font-size: 14pt;">Java鐖卞ソ鑰呯ぞ鍖?/strong><br />鍏紬鍙峰唴瀹圭畝浠嬶細<br /><p><span style="background-color: yellow; color: red;">涓撴敞浜庡垎浜獼ava鍚庣鐩稿叧鎶鏈佽佸徃鏈哄疄鎴樺共璐э紝涓嶉檺浜嶫VM銆佸茍鍙戙佽璁℃ā寮忋佹ц兘浼樺寲銆佸垎甯冨紡&寰湇鍔°佷簯鍘熺敓銆佸ぇ鏁版嵁鐩稿叧涓婚銆?/span><br style="color: red;" /><span style="background-color: yellow; color: red;">甯屾湜鍏蟲敞鐨勪綘鍋滀笅鑴氭錛屽畾鏈夋墍鏀惰幏銆?/span><br style="color: red;" /><br />浠ュ墠鐨勪釜浜哄崥瀹㈠唴瀹逛笉濂借縼縐伙紝鎵浠ユ垜鎵撶畻鏍規嵁鑷繁鐨勫騫寸粡楠岋紝涓嶆柇鏁寸悊杈撳嚭鏈変環鍊肩殑鍐呭銆?br />鐩墠鍏紬鍙峰唴瀹規湁鍏充簬<span style="background-color: yellow; color: red;">SpringCloud錛堝井鏈嶅姟妗嗘灦錛夈丼kywalking錛圓PM鐩戞帶璋冪敤閾撅級銆丣VM錛圙C鍒嗘瀽銆佸唴瀛樻硠婕忓垎鏋愶級銆佸茍鍙戠紪紼?/span>鐩稿叧鍘熷垱瀹炴垬鏂囩珷宸插嚭鐐夈?br /><br />鏈榪戝垰寮濮嬪凡緇忔湁涓嶅皯灝忎紮浼村叧娉ㄤ簡錛屾湡寰呰兘鏈夊垢鎼滅儲鍒版湰鍗氬鐨勫悓瀛︼紝鍙互鎵爜鍏蟲敞涓涓嬶紝涓嶈儨鎰熸縺銆?br />澶у鏈変換浣曟妧鏈佽亴鍦恒侀潰璇曚笂鐨勯棶棰橀兘鍙互涓庢垜浜ゆ祦銆?br /><br /><span style="background-color: yellow;"><strong>鏂瑰紡涓錛?/strong></span><span style="color: red; background-color: yellow;"><strong>鎵爜浠ヤ笅鍏紬鍙蜂簩緇寸爜錛?/strong></span><br /><img src="http://www.tkk7.com/images/blogjava_net/ldwblog/Java%E7%88%B1%E5%A5%BD%E8%80%85%E7%A4%BE%E5%8C%BA%E4%BA%8C%E7%BB%B4%E7%A0%81.png" border="0" alt="" /><br /><br />鏂瑰紡浜岋細<span style="color: red;">鍦ㄥ井淇′笂鐩存帴鎼滅儲錛?nbsp;</span><span style="color: red; background-color: yellow;">javatech_cbo</span><br /><br />鎰熻阿鍚勪綅灝忎紮浼寸殑鏀寔錛屽悗緇細鍦ㄨ鍏紬鍙蜂笂杈撳嚭澶ч噺鐨勬湁浠峰肩殑瀹炴垬騫茶揣 錛屾湡寰呬笌浣犱竴鍚岃繘姝ヤ笌鎴愰暱銆?br /></p><img src ="http://www.tkk7.com/ldwblog/aggbug/434887.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/ldwblog/" target="_blank">David1228</a> 2019-10-30 14:10 <a href="http://www.tkk7.com/ldwblog/archive/2019/10/30/434887.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>JSON.parse Function (JavaScript) and JSON.stringify Function (JavaScript)http://www.tkk7.com/ldwblog/archive/2013/03/04/396043.htmlDavid1228David1228Mon, 04 Mar 2013 08:59:00 GMThttp://www.tkk7.com/ldwblog/archive/2013/03/04/396043.htmlhttp://www.tkk7.com/ldwblog/comments/396043.htmlhttp://www.tkk7.com/ldwblog/archive/2013/03/04/396043.html#Feedback0http://www.tkk7.com/ldwblog/comments/commentRss/396043.htmlhttp://www.tkk7.com/ldwblog/services/trackbacks/396043.html

Deserializes JavaScript Object Notation (JSON) text to produce a JavaScript value.

JSON.parse(text [, reviver]) 
text

Required. Valid JSON text.

reviver

Optional. A function that filters and transforms the results. The deserialized object is traversed recursively, and the reviver function is called for each member of the object in post-order (every object is revived after all its members have been revived). For each member, the following occurs:

  • If reviver returns a valid value, the member value is replaced with the value returned by reviver.

  • If reviver returns what it received, the structure is not modified.

  • If reviver returns null or undefined, the object member is deleted.

The reviver argument is often used to transform JSON representation of International Organization for Standardization (ISO) date strings into Coordinated Universal Time (UTC) format Date objects.

A JavaScript value—an object or array.

Exception

Condition

JavaScript parser errors

The input text does not comply with JSON syntax. To correct the error, do one of the following:

  • Modify the text argument to comply with JSON syntax. For more information, see the BNF syntax notation of JSON objects.

  • Make sure that the text argument was serialized by a JSON-compliant implementation, such as, JSON.stringify.

This example uses JSON.parse to deserialize JSON text into the contact object.

var jsontext = '{"firstname":"Jesper","surname":"Aaberg","phone":["555-0100","555-0120"]}'; var contact = JSON.parse(jsontext); var fullname = contact.surname + ", " + contact.firstname; // The value of fullname is "Aaberg, Jesper" 

This example uses JSON.parse to deserialize an ISO-formatted date string. The dateReviver function returns Date objects for members that are formatted like ISO date strings.

var jsontext = '{ "hiredate": "2008-01-01T12:00:00Z", "birthdate": "2008-12-25T12:00:00Z" }'; var dates = JSON.parse(jsontext, dateReviver); var string = dates.birthdate.toUTCString(); // The value of string is "Thu, 25 Dec 2008 12:00:00 UTC"  function dateReviver(key, value) {     var a;     if (typeof value === 'string') {         a = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);         if (a) {             return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],                             +a[5], +a[6]));         }     }     return value; }; 

Supported in the following document modes: Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards.

Serializes a JavaScript value into JavaScript Object Notation (JSON) text.

JSON.stringify(value [, replacer] [, space]) 
value

Required. A JavaScript value, usually an object or array, to be serialized.

replacer

Optional. A function or array that filters and transforms the results.

If replacer is a function, JSON.stringify calls the function, passing in the key and value of each member. The return value is serialized instead of the original value. If the function returns undefined, the member will be excluded from the serialization. The key for the root object is an empty string: "".

If replacer is an array, only members with key values in the array will be serialized. The order of serialization is the same as the order of the keys in the array. Thereplacer array is ignored when the value argument is also an array.

space

Optional. Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.

If space is omitted, the return-value text is generated without any extra white space.

If space is a number, the return-value text is indented with the specified number of white spaces at each level. If space is greater than 10, text is indented 10 spaces.

If space is a non-empty string, such as '\t', the return-value text is indented with the characters in the string at each level.

If space is a string that is longer than 10 characters, the first 10 characters are used.

A string that contains the serialized JSON text.

Exception

Condition

Invalid replacer argument

The replacer argument is not a function or an array.

Circular reference in value argument not supported

The value argument contains a circular reference.

If the value that is being serialized has a toJSON method, the JSON.stringify function calls the toJSON method and uses the return value for serialization. If the return value of the toJSON method is undefined, the member will not be serialized. This enables an object to determine its own JSON representation.

Values that do not have JSON representations, such as undefined, will not be serialized. In objects, they will be dropped. In arrays, they will be replaced with null.

String values begin and end with a quotation mark. All Unicode characters may be enclosed in the quotation marks except for the characters that must be escaped by using a backslash. The following characters must be preceded by a backslash:

  • Quotation mark (")

  • Backslash (\)

  • Backspace (b)

  • Formfeed (f)

  • Newline (n)

  • Carriage return (r)

  • Horizontal tab (t)

  • Four-hexadecimal-digits (uhhhh)

Order of Execution

During the serialization process, if a toJSON method exists for the value argument, JSON.stringify first calls the toJSON method. If it does not exist, the original value is used. Next, if a replacer argument is provided, the value (original value or toJSON return-value) is replaced with the return-value of the replacer argument. Finally, white spaces are added to the value based on the optional space argument to generate the final serialized JSON text.

This example uses JSON.stringify to serialize the contact object to JSON text. The memberfilter array is defined so that only the surname and phone members are serialized. The firstname member is omitted.

var contact = new Object(); contact.firstname = "Jesper"; contact.surname = "Aaberg"; contact.phone = ["555-0100", "555-0120"];  var memberfilter = new Array(); memberfilter[0] = "surname"; memberfilter[1] = "phone"; var jsonText = JSON.stringify(contact, memberfilter, "\t"); /* The value of jsonText is: '{     "surname": "Aaberg",     "phone": [         "555-0100",         "555-0120"     ] }' */ 

This example uses JSON.stringify to serialize an array. The replaceToUpper function converts every string in the array to uppercase.

var continents = new Array(); continents[0] = "Europe"; continents[1] = "Asia"; continents[2] = "Australia"; continents[3] = "Antarctica"; continents[4] = "North America"; continents[5] = "South America"; continents[6] = "Africa";  var jsonText = JSON.stringify(continents, replaceToUpper); /* The value of jsonText is: '"EUROPE,ASIA,AUSTRALIA,ANTARCTICA,NORTH AMERICA,SOUTH AMERICA,AFRICA"' */  function replaceToUpper(key, value) {     return value.toString().toUpperCase(); } 

This example uses the toJSON method to serialize string member values in uppercase.

var contact = new Object();  contact.firstname = "Jesper"; contact.surname = "Aaberg"; contact.phone = ["555-0100", "555-0120"];  contact.toJSON = function(key)  {     var replacement = new Object();     for (var val in this)     {         if (typeof (this[val]) === 'string')             replacement[val] = this[val].toUpperCase();         else             replacement[val] = this[val]     }     return replacement; };  var jsonText = JSON.stringify(contact);  /* The value of jsonText is: '{"firstname":"JESPER","surname":"AABERG","phone":["555-0100","555-0120"]}' */ 

Supported in the following document modes: Internet Explorer 8 standards, Internet Explorer 9 standards. See Version Information.

Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards.




http://msdn.microsoft.com/library/cc836459(VS.85).aspx



David1228 2013-03-04 16:59 鍙戣〃璇勮
]]>
錛涚儌絎斿ご錛孞query select option鍦╤tml涓嬌鐢?/title><link>http://www.tkk7.com/ldwblog/archive/2011/11/28/364990.html</link><dc:creator>David1228</dc:creator><author>David1228</author><pubDate>Mon, 28 Nov 2011 06:35:00 GMT</pubDate><guid>http://www.tkk7.com/ldwblog/archive/2011/11/28/364990.html</guid><wfw:comment>http://www.tkk7.com/ldwblog/comments/364990.html</wfw:comment><comments>http://www.tkk7.com/ldwblog/archive/2011/11/28/364990.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/ldwblog/comments/commentRss/364990.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/ldwblog/services/trackbacks/364990.html</trackback:ping><description><![CDATA[<div>杞澆鑷細<div>http://conkeyn.iteye.com/blog/734186</div><br />鎬葷粨榪樹笉閿欑殑<br /><br /><div><ol start="1"><li><span>jQuery鑾峰彇Select閫夋嫨鐨凾ext鍜孷alue:  </span></li><li>璇硶瑙i噴錛?nbsp; </li><li>1. $(<span>"#select_id").change(function(){//code...});   //涓篠elect娣誨姞浜嬩歡錛屽綋閫夋嫨鍏朵腑涓欏規椂瑙﹀彂  </span></li><li>2. <span>var checkText=$("#select_id").find("option:selected").text();  //鑾峰彇Select閫夋嫨鐨凾ext  </span></li><li>3. <span>var checkValue=$("#select_id").val();  //鑾峰彇Select閫夋嫨鐨刅alue  </span></li><li>4. <span>var checkIndex=$("#select_id ").get(0).selectedIndex;  //鑾峰彇Select閫夋嫨鐨勭儲寮曞?nbsp; </span></li><li>5. <span>var maxIndex=$("#select_id option:last").attr("index");  //鑾峰彇Select鏈澶х殑绱㈠紩鍊?nbsp; </span></li><li>jQuery璁劇疆Select閫夋嫨鐨?nbsp;Text鍜孷alue:  </li><li>璇硶瑙i噴錛?nbsp; </li><li>1. $(<span>"#select_id ").get(0).selectedIndex=1;  //璁劇疆Select绱㈠紩鍊間負1鐨勯」閫変腑  </span></li><li>2. $(<span>"#select_id ").val(4);   // 璁劇疆Select鐨刅alue鍊間負4鐨勯」閫変腑  </span></li><li>3. $(<span>"#select_id option[text='jQuery']").attr("selected", true);   //璁劇疆Select鐨凾ext鍊間負jQuery鐨勯」閫変腑  </span></li><li>jQuery娣誨姞/鍒犻櫎Select鐨凮ption欏癸細  </li><li>璇硶瑙i噴錛?nbsp; </li><li>1. $(<span>"#select_id").append("<option value='Value'>Text</option>");  //涓篠elect榪藉姞涓涓狾ption(涓嬫媺欏?  </span></li><li>2. $(<span>"#select_id").prepend("<option value='0'>璇烽夋嫨</option>");  //涓篠elect鎻掑叆涓涓狾ption(絎竴涓綅緗?  </span></li><li>3. $(<span>"#select_id option:last").remove();  //鍒犻櫎Select涓儲寮曞兼渶澶ption(鏈鍚庝竴涓?  </span></li><li>4. $(<span>"#select_id option[index='0']").remove();  //鍒犻櫎Select涓儲寮曞間負0鐨凮ption(絎竴涓?  </span></li><li>5. $(<span>"#select_id option[value='3']").remove();  //鍒犻櫎Select涓璙alue='3'鐨凮ption  </span></li><li>5. $(<span>"#select_id option[text='4']").remove();  //鍒犻櫎Select涓璗ext='4'鐨凮ption  </span></li><li>  </li><li>http:<span>//www.cnblogs.com/SAL2928/archive/2008/10/28/1321285.html  </span></li><li>  </li><li>jquery radio鍙栧鹼紝checkbox鍙栧鹼紝select鍙栧鹼紝radio閫変腑錛宑heckbox閫変腑錛宻elect閫変腑錛屽強鍏剁浉鍏?nbsp; </li><li>鑾?nbsp;鍙栦竴緇剅adio琚変腑欏圭殑鍊?nbsp; </li><li><span>var item = $('input[@name=items][@checked]').val();  </span></li><li>鑾?nbsp;鍙杝elect琚変腑欏圭殑鏂囨湰  </li><li><span>var item = $("select[@name=items] option[@selected]").text();  </span></li><li>select涓嬫媺妗嗙殑絎簩涓厓绱犱負褰撳墠閫変腑鍊?nbsp; </li><li>$(<span>'#select_id')[0].selectedIndex = 1;  </span></li><li>radio鍗曢夌粍鐨勭浜屼釜鍏冪礌涓哄綋鍓嶉変腑鍊?nbsp; </li><li>$(<span>'input[@name=items]').get(1).checked = true;  </span></li><li>  </li><li>鑾峰彇鍊鹼細  </li><li>  </li><li>鏂囨湰妗嗭紝鏂囨湰鍖哄煙錛?(<span>"#txt").attr("value")錛?nbsp; </span></li><li>澶氶夋 checkbox錛?(<span>"#checkbox_id").attr("value")錛?nbsp; </span></li><li>鍗曢夌粍radio錛?nbsp;  $(<span>"input[@type=radio][@checked]").val();  </span></li><li>涓嬫媺妗唖elect錛?nbsp;$(<span>'#sel').val();  </span></li><li>  </li><li>鎺у埗琛ㄥ崟鍏冪礌錛?nbsp; </li><li>鏂囨湰妗嗭紝鏂囨湰鍖哄煙錛?(<span>"#txt").attr("value",'');//娓呯┖鍐呭  </span></li><li>$(<span>"#txt").attr("value",'11');// 濉厖鍐呭  </span></li><li>  </li><li>澶氶夋checkbox錛?nbsp;$(<span>"#chk1").attr("checked",'');//涓嶆墦鍕?nbsp; </span></li><li>$(<span>"#chk2").attr("checked",true);// 鎵撳嬀  </span></li><li><span>if($("#chk1").attr('checked')==undefined) //鍒ゆ柇鏄惁宸茬粡鎵撳嬀  </span></li><li>  </li><li>鍗曢夌粍 radio錛?nbsp;   $(<span>"input[@type=radio]").attr("checked",'2');//璁劇疆value=2鐨勯」鐩負褰撳墠閫変腑欏?nbsp; </span></li><li>涓嬫媺妗?nbsp;select錛?nbsp;  $(<span>"#sel").attr("value",'-sel3');//璁劇疆value=-sel3鐨勯」鐩負褰撳墠閫変腑欏?nbsp; </span></li><li>$(<span>"<option value='1'>1111</option><option value='2'>2222</option>").appendTo("#sel")//娣誨姞涓嬫媺妗嗙殑option  </span></li><li>$(<span>"#sel").empty()錛?/ 娓呯┖涓嬫媺妗?nbsp; </span></li><li>  </li><li>----------------------------------------------------------------------------------------------------  </li><li>  </li><li>   </li><li>  </li><li><span>//閬嶅巻option鍜屾坊鍔犮佺Щ闄ption  </span></li><li><span>function changeShipMethod(shipping){  </span></li><li><span>var len = $("select[@name=ISHIPTYPE] option").length  </span></li><li><span>if(shipping.value != "CA"){  </span></li><li>$(<span>"select[@name=ISHIPTYPE] option").each(function(){  </span></li><li><span>if($(this).val() == 111){  </span></li><li>$(<span>this).remove();  </span></li><li>}  </li><li>});  </li><li>}<span>else{  </span></li><li>$(<span>"<option value='111'>UPS Ground</option>").appendTo($("select[@name=ISHIPTYPE]"));  </span></li><li>}  </li><li>}  </li><li>  </li><li>  </li><li><span>//鍙栧緱涓嬫媺閬稿柈鐨勯伕鍙栧?nbsp; </span></li><li>  </li><li>$(#testSelect option:selected').text();  </li><li>鎴?(<span>"#testSelect").find('option:selected').text();  </span></li><li>鎴?(<span>"#testSelect").val();  </span></li><li><span>//////////////////////////////////////////////////////////////////  </span></li><li>璁?nbsp;鎬т笉濂界殑鍙互鏀惰棌涓嬶細  </li><li>1,涓嬫媺妗?  </li><li>  </li><li><span>var cc1 = $(".formc select[@name='country'] option[@selected]").text(); //寰楀埌涓嬫媺鑿滃崟鐨勯変腑欏圭殑鏂囨湰(娉ㄦ剰涓棿鏈夌┖鏍?  </span></li><li><span>var cc2 = $('.formc select[@name="country"]').val(); //寰楀埌涓嬫媺鑿滃崟鐨勯変腑欏圭殑鍊?nbsp; </span></li><li><span>var cc3 = $('.formc select[@name="country"]').attr("id"); //寰楀埌涓嬫媺鑿滃崟鐨勯変腑欏圭殑ID灞炴у?nbsp; </span></li><li>$(<span>"#select").empty();//娓呯┖涓嬫媺妗?nbsp;//$("#select").html('');  </span></li><li>$(<span>"<option value='1'>1111</option>").appendTo("#select")//娣誨姞涓嬫媺妗嗙殑option  </span></li><li>  </li><li>紼嶅井瑙i噴涓涓?  </li><li>1.select[@name=<span>'country'] option[@selected] 琛ㄧず鍏鋒湁name 灞炴э紝  </span></li><li>騫?nbsp;涓旇灞炴у間負<span>'country' 鐨剆elect鍏冪礌 閲岄潰鐨勫叿鏈塻elected 灞炴х殑option 鍏冪礌錛?nbsp; </span></li><li>鍙互鐪嬪嚭鏈堾寮澶寸殑灝辮〃紺哄悗闈㈣窡 鐨勬槸灞炴с?nbsp; </li><li>  </li><li>2,鍗曢夋:  </li><li>$(<span>"input[@type=radio][@checked]").val(); //寰楀埌鍗曢夋鐨?nbsp;閫変腑欏圭殑鍊?娉ㄦ剰涓棿娌℃湁絀烘牸)  </span></li><li>$(<span>"input[@type=radio][@value=2]").attr("checked",'checked'); //璁劇疆鍗曢夋value=2鐨勪負閫変腑鐘舵?(娉ㄦ剰涓棿娌℃湁絀烘牸)  </span></li><li>  </li><li>3,澶嶉夋:  </li><li>$(<span>"input[@type=checkbox][@checked]").val(); //寰楀埌澶嶉夋鐨勯変腑鐨勭涓欏圭殑鍊?nbsp; </span></li><li>$(<span>"input[@type=checkbox][@checked]").each(function() { //鐢變簬澶嶉夋涓鑸変腑鐨勬槸澶氫釜,鎵浠ュ彲浠ュ驚鐜緭鍑?nbsp; </span></li><li>alert($(<span>this).val());  </span></li><li>});  </li><li>  </li><li>$(<span>"#chk1").attr("checked",'');//涓嶆墦鍕?nbsp; </span></li><li>$(<span>"#chk2").attr("checked",true);// 鎵撳嬀  </span></li><li><span>if($("#chk1").attr('checked')==undefined){} //鍒ゆ柇鏄惁宸茬粡鎵撳嬀  </span></li><li>  </li><li>  </li><li>褰撶劧jquery鐨勯夋嫨鍣ㄦ槸寮哄ぇ鐨? 榪樻湁寰堝鏂規硶.  </li><li>  </li><li><script src=<span>"jquery-1.2.1.js" type="text/javascript"></script>  </span></li><li><script language=<span>"javascript" type="text/javascript">  </span></li><li>$(document).ready(<span>function(){  </span></li><li>$(<span>"#selectTest").change(function()  </span></li><li>{  </li><li><span>//alert("Hello");  </span></li><li><span>//alert($("#selectTest").attr("name"));  </span></li><li><span>//$("a").attr("href","xx.html");  </span></li><li><span>//window.location.href="xx.html";  </span></li><li><span>//alert($("#selectTest").val());  </span></li><li>alert($(<span>"#selectTest option[@selected]").text());  </span></li><li>$(<span>"#selectTest").attr("value", "2");  </span></li><li>  </li><li>});  </li><li>});  </li><li></script>  </li><li>  </li><li>  </li><li><a href=<span>"#">aaass</a>  </span></li><li>  </li><li><!--涓嬫媺妗?->  </li><li><select id=<span>"selectTest" name="selectTest">  </span></li><li><option value=<span>"1">11</option>  </span></li><li><option value=<span>"2">22</option>  </span></li><li><option value=<span>"3">33</option>  </span></li><li><option value=<span>"4">44</option>  </span></li><li><option value=<span>"5">55</option>  </span></li><li><option value=<span>"6">66</option>  </span></li><li></select>  </li><li>jquery radio鍙栧鹼紝checkbox鍙栧鹼紝select鍙栧鹼紝radio閫変腑錛宑heckbox閫変腑錛宻elect閫変腑錛屽強鍏剁浉鍏寵幏鍙栦竴緇剅adio琚変腑 欏圭殑鍊?nbsp; </li><li><span>var item = $('input[@name=items][@checked]').val();  </span></li><li>鑾峰彇select琚?nbsp;涓」鐨勬枃鏈?nbsp; </li><li><span>var item = $("select[@name=items] option[@selected]").text();  </span></li><li>select 涓嬫媺妗嗙殑絎簩涓厓绱犱負褰撳墠閫変腑鍊?nbsp; </li><li>$(<span>'#select_id')[0].selectedIndex = 1;  </span></li><li>radio鍗曢夌粍鐨勭浜屼釜 鍏冪礌涓哄綋鍓嶉変腑鍊?nbsp; </li><li>$(<span>'input[@name=items]').get(1).checked = true;  </span></li><li>鑾峰彇鍊鹼細  </li><li>鏂囨湰 妗嗭紝鏂囨湰鍖哄煙錛?(<span>"#txt").attr("value")錛?nbsp; </span></li><li>澶氶夋 checkbox錛?(<span>"#checkbox_id").attr("value")錛?nbsp; </span></li><li>鍗曢夌粍radio錛?nbsp;$(<span>"input[@type=radio][@checked]").val();  </span></li><li>涓嬫媺妗唖elect錛?nbsp;$(<span>'#sel').val();  </span></li><li>鎺?nbsp;鍒惰〃鍗曞厓绱狅細  </li><li>鏂囨湰妗嗭紝鏂囨湰鍖哄煙錛?(<span>"#txt").attr("value",'');//娓呯┖鍐呭  </span></li><li>$(<span>"#txt").attr("value",'11');// 濉厖鍐呭  </span></li><li>澶氶夋checkbox錛?nbsp;$(<span>"#chk1").attr("checked",'');//涓嶆墦鍕?nbsp; </span></li><li>$(<span>"#chk2").attr("checked",true);// 鎵撳嬀  </span></li><li><span>if($("#chk1").attr('checked')==undefined) //鍒ゆ柇鏄惁宸茬粡鎵撳嬀  </span></li><li>鍗曢夌粍radio錛?nbsp;$(<span>"input[@type=radio]").attr("checked",'2');//璁劇疆value=2鐨勯」鐩負褰撳墠閫変腑欏?nbsp; </span></li><li>涓嬫媺妗?nbsp;select錛?nbsp;$(<span>"#sel").attr("value",'-sel3');//璁劇疆value=-sel3鐨勯」鐩負褰撳墠閫変腑欏?nbsp; </span></li><li>$(<span>"<optionvalue='1'& gt;1111</option><optionvalue='2'>2222</option& gt;").appendTo("#sel")//娣誨姞涓嬫媺妗嗙殑option  </span></li><li>$(<span>"#sel").empty()錛?/ 娓呯┖涓嬫媺妗?nbsp; </span></li><li>  </li><li>鑾峰彇涓緇剅adio琚変腑欏圭殑鍊?nbsp; </li><li><span>var item = $('input[@name=items][@checked]').val();  </span></li><li>鑾峰彇select琚変腑欏圭殑鏂囨湰  </li><li><span>var item = $("select[@name=items] option[@selected]").text();  </span></li><li>select涓嬫媺妗嗙殑絎簩涓厓绱犱負褰?nbsp;鍓嶉変腑鍊?nbsp; </li><li>$(<span>'#select_id')[0].selectedIndex = 1;  </span></li><li>radio鍗曢夌粍鐨勭浜屼釜鍏冪礌涓哄綋鍓嶉変腑鍊?nbsp; </li><li>$(<span>'input[@name=items]').get(1).checked = true;  </span></li><li>鑾峰彇鍊鹼細  </li><li>鏂囨湰妗嗭紝鏂囨湰鍖哄煙錛?(<span>"#txt").attr("value")錛?nbsp; </span></li><li>澶氶夋 checkbox錛?(<span>"#checkbox_id").attr("value")錛?nbsp; </span></li><li>鍗曢夌粍radio錛?nbsp;$(<span>"input[@type=radio][@checked]").val();  </span></li><li>涓嬫媺妗唖elect錛?nbsp;$(<span>'#sel').val();  </span></li><li>鎺?nbsp;鍒惰〃鍗曞厓绱狅細  </li><li>鏂囨湰妗嗭紝鏂囨湰鍖哄煙錛?(<span>"#txt").attr("value",'');//娓呯┖鍐呭  </span></li><li>$(<span>"#txt").attr("value",'11');// 濉厖鍐呭  </span></li><li>澶氶夋checkbox錛?nbsp;$(<span>"#chk1").attr("checked",'');//涓嶆墦鍕?nbsp; </span></li><li>$(<span>"#chk2").attr("checked",true);// 鎵撳嬀  </span></li><li><span>if($("#chk1").attr('checked')==undefined) //鍒ゆ柇鏄惁宸茬粡鎵撳嬀  </span></li><li>鍗曢夌粍radio錛?nbsp;$(<span>"input[@type=radio]").attr("checked",'2');//璁劇疆value=2鐨勯」鐩負褰撳墠閫変腑欏?nbsp; </span></li><li>涓嬫媺妗?nbsp;select錛?nbsp;$(<span>"#sel").attr("value",'-sel3');//璁劇疆value=-sel3鐨勯」鐩負褰撳墠閫変腑欏?nbsp; </span></li><li>$(<span>"<option value='1'>1111</option><option value='2'>2222</option>").appendTo("#sel")//娣誨姞涓嬫媺妗嗙殑option  </span></li><li>$(<span>"#sel").empty()錛?/ 娓呯┖涓嬫媺妗?nbsp; <br /></span></li></ol><p><div>query鑾峰彇鏁版嵁騫剁敓鎴愪笅鎷夎彍鍗?璁頒笅鏉?鍏嶅緱鍙堝紕涓?榪欎笢涓滀竴涓嶇敤灝卞繕,閮侀椃~!!! <p><script type="text/javascript"><br />    $(document).ready(function() {<br />        GetByJquery();<br />        $("#ddlProvince").change(function() { GetCity() });<br />        $("#ddlCity").change(function() { GetDistrict() });<br />    });<br />    <br />    function GetByJquery() { </p> <p>        $("#ddlProvince").empty(); //娓呯┖鐪佷喚SELECT鎺т歡 </p> <p>        $.getJSON("/ajax/GetProvinceList", function(data) {<br />            $.each(data, function(i, item) {<br />                $("<option></option>")<br />                    .val(item["ProvinceID"])<br />                    .text(item["ProvinceName"])<br />                    .appendTo($("#ddlProvince"));<br />            });<br />            GetCity();<br />        });      </p> <p>    } </p> <p>    function GetCity() { </p> <p>        $("#ddlCity").empty(); //娓呯┖鍩庡競SELECT鎺т歡<br />        var url ="/ajax/GetCityList/" + $("#ddlProvince").val();<br />        $.getJSON(url, function(data) {<br />            $.each(data, function(i, item) {<br />                $("<option></option>")<br />                    .val(item["CityID"])<br />                    .text(item["CityName"])<br />                    .appendTo($("#ddlCity"));<br />            });<br />            GetDistrict();<br />        });<br />    } </p> <p>    function GetDistrict() {<br />        $("#ddlDistrict").empty(); //娓呯┖甯傚尯SELECT鎺т歡<br />        var url = "/ajax/GetDistrictList/" + $("#ddlCity").val();<br />        <br />        $.getJSON(url, function(data) {<br />            $.each(data, function(i, item) {<br />                $("<option></option>")<br />                    .val(item["DistrictID"])<br />                    .text(item["DistrictName"])<br />                    .appendTo($("#ddlDistrict"));<br />            });<br />        });<br />    } </p> <p></script></p></div><br /></p></div><br /></div><img src ="http://www.tkk7.com/ldwblog/aggbug/364990.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/ldwblog/" target="_blank">David1228</a> 2011-11-28 14:35 <a href="http://www.tkk7.com/ldwblog/archive/2011/11/28/364990.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>endWith js鍑芥暟http://www.tkk7.com/ldwblog/archive/2010/08/31/330425.htmlDavid1228David1228Tue, 31 Aug 2010 06:45:00 GMThttp://www.tkk7.com/ldwblog/archive/2010/08/31/330425.htmlhttp://www.tkk7.com/ldwblog/comments/330425.htmlhttp://www.tkk7.com/ldwblog/archive/2010/08/31/330425.html#Feedback0http://www.tkk7.com/ldwblog/comments/commentRss/330425.htmlhttp://www.tkk7.com/ldwblog/services/trackbacks/330425.html        if(str==null||str==""||this.length==0||str.length>this.length)
              return false;
    if(this.substring(this.length-str.length)==str) return true;
          else return false;
          return true;
   }

David1228 2010-08-31 14:45 鍙戣〃璇勮
]]>
js璁劇疆涓嬫媺妗嗙瓑鍙灞炴?鍏朵粬涔熷彲浠ュ摝http://www.tkk7.com/ldwblog/archive/2010/08/26/329974.htmlDavid1228David1228Thu, 26 Aug 2010 07:19:00 GMThttp://www.tkk7.com/ldwblog/archive/2010/08/26/329974.htmlhttp://www.tkk7.com/ldwblog/comments/329974.htmlhttp://www.tkk7.com/ldwblog/archive/2010/08/26/329974.html#Feedback1http://www.tkk7.com/ldwblog/comments/commentRss/329974.htmlhttp://www.tkk7.com/ldwblog/services/trackbacks/329974.html杞澆鑷細http://ltf1660.javaeye.com/blog/580699
鍦ㄩ」鐩紑鍙戣繃紼嬩腑鎴戜滑鏃跺父浼氱鍒拌璁劇疆涓嬫媺妗嗕負鍙錛坮eadonly錛夛紝浣嗘槸鍙儨鐨勬槸select娌℃湁鍙灞炴э紝鎵浠ラ渶瑕佸湪select澶栭潰鍖呭惈涓涓?span style="color: #ff0000">span錛岄氳繃js鏉ユ敼鍙樸?/p>

涓嬮潰榪欐html浠g爜鏄湪struts2鐨勪笅鎷夋爣絳句腑鍔犲叆浜唖pan鏍囩錛屽湪欏甸潰瑁呰澆鐨勬椂鍊欏氨璁╀笅鎷夋鍙樻垚涓嶅彲璇匯?/p>

<body onload="init()">

    <span id="id_select">
       <s:select name="sjdwmc" list="sjdxdwList" listKey="dxbh"  listValue="dwmc" headerKey="" headerValue=""></s:select>
    </span>

</body>

濡備笅鏄痡s浠g爜錛屽湪init鏂規硶涓皟鐢╯electReadOnly璁╀笅鎷夋鍙樻垚鍙銆?/p>

/*鏍規嵁欏甸潰涓妔pan鐨刬d璁劇疆select涓哄彧璇?/strong>/

function selectReadOnly(selectedId){
  var obj = document.getElementById(selectedId);
     obj.onmouseover = function(){
     obj.setCapture();
    }
    obj.onmouseout = function(){
     obj.releaseCapture();
    }
    obj.onfocus = function(){
     obj.blur();
    }
    obj.onbeforeactivate = function(){
     return false;
    }
 }

function init(){
      selectReadOnly("id_select");
  }



David1228 2010-08-26 15:19 鍙戣〃璇勮
]]>
js鏃墮棿鍑芥暟瑙i噴http://www.tkk7.com/ldwblog/archive/2010/08/19/329319.htmlDavid1228David1228Thu, 19 Aug 2010 02:44:00 GMThttp://www.tkk7.com/ldwblog/archive/2010/08/19/329319.htmlhttp://www.tkk7.com/ldwblog/comments/329319.htmlhttp://www.tkk7.com/ldwblog/archive/2010/08/19/329319.html#Feedback0http://www.tkk7.com/ldwblog/comments/commentRss/329319.htmlhttp://www.tkk7.com/ldwblog/services/trackbacks/329319.html榪欐js闇瑕佷簡瑙s鐨勬椂闂村嚱鏁?
<script language="JavaScript" type="text/javascript">
<!--
calendar = new Date(); //寰楀埌褰撳墠鏃ユ湡
day = calendar.getDay(); //褰撳墠澶氭暟鍙?
month = calendar.getMonth(); //褰撳墠鏈堜喚
date = calendar.getDate(); //褰撳墠鏄熸湡
year = calendar.getYear(); //騫翠喚
if (year< 100) year = 1900 + year;
cent = parseInt(year/100);
g = year % 19;
k = parseInt((cent - 17)/25);
i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
l = i - j;
emonth = 3 + parseInt((l + 40)/44);
edate = l + 28 - 31*parseInt((emonth/4));
emonth--;
var dayname = new Array ("鏄熸湡鏃?, "鏄熸湡涓", "鏄熸湡浜?, "鏄熸湡涓?, "鏄熸湡鍥?, "鏄熸湡浜?, "鏄熸湡鍏?);
var monthname =
new Array ("1鏈?,"2鏈?,"3鏈?,"4鏈?,"5鏈?,"6鏈?,"7鏈?,"8鏈?,"9鏈?,"10鏈?,"11鏈?,"12鏈? );
document.write(year +"騫?);
document.write(monthname[month]);
document.write(date + "鏃?+" ");
document.write(dayname[day]);
//-->
</script>

 

 

js鏃ユ湡鐩稿叧

var myDate = new Date();
myDate.getYear(); //鑾峰彇褰撳墠騫翠喚(2浣?
myDate.getFullYear(); //鑾峰彇瀹屾暣鐨勫勾浠?4浣?1970-????)
myDate.getMonth(); //鑾峰彇褰撳墠鏈堜喚(0-11,0浠h〃1鏈?
myDate.getDate(); //鑾峰彇褰撳墠鏃?1-31)
myDate.getDay(); //鑾峰彇褰撳墠鏄熸湡X(0-6,0浠h〃鏄熸湡澶?
myDate.getTime(); //鑾峰彇褰撳墠鏃墮棿(浠?970.1.1寮濮嬬殑姣鏁?
myDate.getHours(); //鑾峰彇褰撳墠灝忔椂鏁?0-23)
myDate.getMinutes(); //鑾峰彇褰撳墠鍒嗛挓鏁?0-59)
myDate.getSeconds(); //鑾峰彇褰撳墠縐掓暟(0-59)
myDate.getMilliseconds(); //鑾峰彇褰撳墠姣鏁?0-999)
myDate.toLocaleDateString(); //鑾峰彇褰撳墠鏃ユ湡
var mytime=myDate.toLocaleTimeString(); //鑾峰彇褰撳墠鏃墮棿
myDate.toLocaleString( ); //鑾峰彇鏃ユ湡涓庢椂闂?/ca>

 

 

 

<SCRIPT LANGUAGE="JavaScript">
<!--
var now= new Date();
var year=now.getYear();
var month=now.getMonth()+1;
var day=now.getDate();
var hour=now.getHours();
var minute=now.getMinutes();
var second=now.getSeconds();
alert(year+"-"+month+"-"+day+" "+hour+":"+minute+":"+second);
-->
</SCRIPT>

now.getMilliseconds(); //鑾峰彇褰撳墠姣鏁?0-999)



David1228 2010-08-19 10:44 鍙戣〃璇勮
]]>
鑾峰彇褰撳墠鏃墮棿鐨勫墠N澶╂垨鑰呭悗N澶╃殑js鍑芥暟http://www.tkk7.com/ldwblog/archive/2010/08/19/329317.htmlDavid1228David1228Thu, 19 Aug 2010 02:39:00 GMThttp://www.tkk7.com/ldwblog/archive/2010/08/19/329317.htmlhttp://www.tkk7.com/ldwblog/comments/329317.htmlhttp://www.tkk7.com/ldwblog/archive/2010/08/19/329317.html#Feedback0http://www.tkk7.com/ldwblog/comments/commentRss/329317.htmlhttp://www.tkk7.com/ldwblog/services/trackbacks/329317.html     //鑾峰彇s緋葷粺鏃墮棿
    var LSTR_ndate=new Date(Date.parse(curDate.replace(/-/g,   "/")));
    var LSTR_Year=LSTR_ndate.getYear();
    var LSTR_Month=LSTR_ndate.getMonth();
    var LSTR_Date=LSTR_ndate.getDate();
    //澶勭悊
    var uom = new Date(LSTR_Year,LSTR_Month,LSTR_Date);
    uom.setDate(uom.getDate()+1);//鍙栧緱緋葷粺鏃墮棿鐨勫墠涓澶?閲嶇偣鍦ㄨ繖閲?璐熸暟鏄墠鍑犲ぉ,姝f暟鏄悗鍑犲ぉ
    var LINT_MM=uom.getMonth();
    LINT_MM++;
    var LSTR_MM=LINT_MM > 10?LINT_MM:("0"+LINT_MM)
    var LINT_DD=uom.getDate();
    var LSTR_DD=LINT_DD > 10?LINT_DD:("0"+LINT_DD)
    //寰楀埌鏈緇堢粨鏋?
    uom = uom.getFullYear() + "-" + LSTR_MM + "-" + LSTR_DD;
    return uom;
   } 
   
   //嫻嬭瘯
   var s= "2008-08-31";
   var endDate = getAfterDate(s);
   alert(endDate);

David1228 2010-08-19 10:39 鍙戣〃璇勮
]]>
姹傚瓧鑺傞暱搴?楠岃瘉瀛楃鎴栨眽瀛楃殑璇存槑http://www.tkk7.com/ldwblog/archive/2010/08/12/328698.htmlDavid1228David1228Thu, 12 Aug 2010 09:48:00 GMThttp://www.tkk7.com/ldwblog/archive/2010/08/12/328698.htmlhttp://www.tkk7.com/ldwblog/comments/328698.htmlhttp://www.tkk7.com/ldwblog/archive/2010/08/12/328698.html#Feedback0http://www.tkk7.com/ldwblog/comments/commentRss/328698.htmlhttp://www.tkk7.com/ldwblog/services/trackbacks/328698.html String.prototype.getBytes = function()
{   
    var cArr = this.match(/[^\x00-\xff]/ig);   
    return this.length + (cArr == null ? 0 : cArr.length);   
}

val.getBytes() > 60
alert('val涓嶈兘瓚呰繃60涓瓧絎︽垨30涓眽瀛?);

David1228 2010-08-12 17:48 鍙戣〃璇勮
]]>
Window.ShowModalDialog浣跨敤鎵嬪唽http://www.tkk7.com/ldwblog/archive/2009/12/15/305998.htmlDavid1228David1228Tue, 15 Dec 2009 03:36:00 GMThttp://www.tkk7.com/ldwblog/archive/2009/12/15/305998.htmlhttp://www.tkk7.com/ldwblog/comments/305998.htmlhttp://www.tkk7.com/ldwblog/archive/2009/12/15/305998.html#Feedback0http://www.tkk7.com/ldwblog/comments/commentRss/305998.htmlhttp://www.tkk7.com/ldwblog/services/trackbacks/305998.html 

鍩烘湰浠嬬粛錛?br />          showModalDialog()                              (IE 4+ 鏀寔)
         showModelessDialog()                         (IE 5+ 鏀寔)
         window.showModalDialog()                 鏂規硶鐢ㄦ潵鍒涘緩涓涓樉紺篐TML鍐呭鐨勬ā鎬佸璇濇銆?br />          window.showModelessDialog()            鏂規硶鐢ㄦ潵鍒涘緩涓涓樉紺篐TML鍐呭鐨勯潪妯℃佸璇濇銆?br /> 浣跨敤鏂規硶錛?br />          vReturnValue = window.showModalDialog(sURL [, vArguments] [,sFeatures])
         vReturnValue = window.showModelessDialog(sURL [, vArguments] [,sFeatures])
鍙傛暟璇存槑錛?br />         sURL                --   蹇呴夊弬鏁幫紝綾誨瀷錛氬瓧絎︿覆銆傜敤鏉ユ寚瀹氬璇濇瑕佹樉紺虹殑鏂囨。鐨刄RL銆?br />         vArguments   --    鍙夊弬鏁幫紝綾誨瀷錛氬彉浣撱傜敤鏉ュ悜瀵硅瘽妗嗕紶閫掑弬鏁般備紶閫掔殑鍙傛暟綾誨瀷涓嶉檺錛屽寘鎷暟緇勭瓑銆傚璇濇閫氳繃window.dialogArguments鏉ュ彇寰椾紶閫掕繘鏉ョ殑鍙傛暟銆?br />         sFeatures       --    鍙夊弬鏁幫紝綾誨瀷錛氬瓧絎︿覆銆傜敤鏉ユ弿榪板璇濇鐨勫瑙傜瓑淇℃伅錛屽彲浠ヤ嬌鐢ㄤ互涓嬬殑涓涓垨鍑犱釜錛岀敤鍒嗗彿“;”闅斿紑銆?br /> ----------------
1.   dialogHeight:   瀵硅瘽妗嗛珮搴︼紝涓嶅皬浜?00px
2.   dialogWidth:   瀵硅瘽妗嗗搴︺?br /> 3.   dialogLeft:    紱誨睆騫曞乏鐨勮窛紱匯?br /> 4.   dialogTop:    紱誨睆騫曚笂鐨勮窛紱匯?br /> 5.   center:         { yes | no | 1 | 0 } 錛?nbsp;            鏄惁灞呬腑錛岄粯璁es錛屼絾浠嶅彲浠ユ寚瀹氶珮搴﹀拰瀹藉害銆?br /> 6.   help:            {yes | no | 1 | 0 }錛?nbsp;              鏄惁鏄劇ず甯姪鎸夐挳錛岄粯璁es銆?br /> 7.   resizable:      {yes | no | 1 | 0 } [IE5+]錛?nbsp;   鏄惁鍙鏀瑰彉澶у皬銆傞粯璁o銆?br /> 8.   status:         {yes | no | 1 | 0 } [IE5+]錛?nbsp;    鏄惁鏄劇ず鐘舵佹爮銆傞粯璁や負yes[ Modeless]鎴杗o[Modal]銆?br /> 9.   scroll:           { yes | no | 1 | 0 | on | off }錛氭槸鍚︽樉紺烘粴鍔ㄦ潯銆傞粯璁や負yes銆?br />
涓嬮潰鍑犱釜灞炴ф槸鐢ㄥ湪HTA涓殑錛屽湪涓鑸殑緗戦〉涓竴鑸笉浣跨敤銆?br /> 10.   dialogHide:{ yes | no | 1 | 0 | on | off }錛氬湪鎵撳嵃鎴栬呮墦鍗伴瑙堟椂瀵硅瘽妗嗘槸鍚﹂殣钘忋傞粯璁や負no銆?br /> 11.   edge:{ sunken | raised }錛氭寚鏄庡璇濇鐨勮竟妗嗘牱寮忋傞粯璁や負raised銆?br /> 12.   unadorned:{ yes | no | 1 | 0 | on | off }錛氶粯璁や負no銆?br />

鍙傛暟浼犻掞細
1.   瑕佹兂瀵硅瘽妗嗕紶閫掑弬鏁幫紝鏄氳繃vArguments鏉ヨ繘琛屼紶閫掔殑銆傜被鍨嬩笉闄愬埗錛屽浜庡瓧絎︿覆綾誨瀷錛屾渶澶т負4096涓瓧絎︺備篃鍙互浼犻掑璞★紝渚嬪錛?br /> -------------------------------
parent.htm
<script>
         var obj = new Object();
         obj.name="51js";
         window.showModalDialog("modal.htm",obj,"dialogWidth=200px;dialogHeight=100px");
</script>
modal.htm
<script>
         var obj = window.dialogArguments
         alert("鎮ㄤ紶閫掔殑鍙傛暟涓猴細" + obj.name)
</script>
-------------------------------
2.   鍙互閫氳繃window.returnValue鍚戞墦寮瀵硅瘽妗嗙殑紿楀彛榪斿洖淇℃伅錛屽綋鐒朵篃鍙互鏄璞°備緥濡傦細
------------------------------
parent.htm
<script>
         str =window.showModalDialog("modal.htm",,"dialogWidth=200px;dialogHeight=100px");
         alert(str);
</script>
modal.htm
<script>
         window.returnValue="http://homepage.yesky.com";



David1228 2009-12-15 11:36 鍙戣〃璇勮
]]>
checkBox澶嶉夋鍒ゆ柇綆渚挎柟寮?/title><link>http://www.tkk7.com/ldwblog/archive/2009/12/09/305295.html</link><dc:creator>David1228</dc:creator><author>David1228</author><pubDate>Wed, 09 Dec 2009 08:37:00 GMT</pubDate><guid>http://www.tkk7.com/ldwblog/archive/2009/12/09/305295.html</guid><wfw:comment>http://www.tkk7.com/ldwblog/comments/305295.html</wfw:comment><comments>http://www.tkk7.com/ldwblog/archive/2009/12/09/305295.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/ldwblog/comments/commentRss/305295.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/ldwblog/services/trackbacks/305295.html</trackback:ping><description><![CDATA[<p> </p> <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 src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><span style="color: #000000"><</span><span style="color: #000000">script type</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">text/javascript</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />            function btn_change_click()<br /> <img id="Codehighlighter1_84_695_Open_Image" onclick="this.style.display='none'; Codehighlighter1_84_695_Open_Text.style.display='none'; Codehighlighter1_84_695_Closed_Image.style.display='inline'; Codehighlighter1_84_695_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_84_695_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_84_695_Closed_Text.style.display='none'; Codehighlighter1_84_695_Open_Image.style.display='inline'; Codehighlighter1_84_695_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedBlock.gif" align="top" alt="" />            </span><span id="Codehighlighter1_84_695_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 src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_84_695_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                var url </span><span style="color: #000000">=</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000"><%=request.getContextPath()%>/rmp/reqchange/beforeChangeOrder.do</span><span style="color: #000000">"</span><span style="color: #000000">;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                var  inputChecked </span><span style="color: #000000">=</span><span style="color: #000000"> document.getElements(</span><span style="color: #000000">"</span><span style="color: #000000">input[name='ckids']</span><span style="color: #000000">"</span><span style="color: #000000">).filterByAttribute(</span><span style="color: #000000">"</span><span style="color: #000000">checked</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">,</span><span style="color: #0000ff">true</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                </span><span style="color: #0000ff">if</span><span style="color: #000000">(inputChecked.length</span><span style="color: #000000">></span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_357_444_Open_Image" onclick="this.style.display='none'; Codehighlighter1_357_444_Open_Text.style.display='none'; Codehighlighter1_357_444_Closed_Image.style.display='inline'; Codehighlighter1_357_444_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_357_444_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_357_444_Closed_Text.style.display='none'; Codehighlighter1_357_444_Open_Image.style.display='inline'; Codehighlighter1_357_444_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />                </span><span id="Codehighlighter1_357_444_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 src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_357_444_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    alert(</span><span style="color: #000000">"</span><span style="color: #000000">姣忔鍙兘鎿嶄綔涓鏉¤褰?/span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    </span><span style="color: #0000ff">return</span><span style="color: #000000">;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />                }</span></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                </span><span style="color: #0000ff">if</span><span style="color: #000000">(inputChecked.length</span><span style="color: #000000"><</span><span style="color: #000000">1</span><span style="color: #000000">)<br /> <img id="Codehighlighter1_504_588_Open_Image" onclick="this.style.display='none'; Codehighlighter1_504_588_Open_Text.style.display='none'; Codehighlighter1_504_588_Closed_Image.style.display='inline'; Codehighlighter1_504_588_Closed_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockStart.gif" align="top" alt="" /><img id="Codehighlighter1_504_588_Closed_Image" style="display: none" onclick="this.style.display='none'; Codehighlighter1_504_588_Closed_Text.style.display='none'; Codehighlighter1_504_588_Open_Image.style.display='inline'; Codehighlighter1_504_588_Open_Text.style.display='inline';" src="http://www.tkk7.com/images/OutliningIndicators/ContractedSubBlock.gif" align="top" alt="" />                </span><span id="Codehighlighter1_504_588_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 src="http://www.tkk7.com/Images/dot.gif" alt="" /></span><span id="Codehighlighter1_504_588_Open_Text"><span style="color: #000000">{<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    alert(</span><span style="color: #000000">"</span><span style="color: #000000">璇烽夋嫨涓鏉¤褰?/span><span style="color: #000000">"</span><span style="color: #000000">);<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                    </span><span style="color: #0000ff">return</span><span style="color: #000000">;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedSubBlockEnd.gif" align="top" alt="" />                }</span></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                window.location </span><span style="color: #000000">=</span><span style="color: #000000">url </span><span style="color: #000000">+</span><span style="color: #000000"> </span><span style="color: #000000">"</span><span style="color: #000000">?orderId=</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #000000">+</span><span style="color: #000000"> inputChecked[</span><span style="color: #000000">0</span><span style="color: #000000">].value;<br /> <img src="http://www.tkk7.com/images/OutliningIndicators/InBlock.gif" align="top" alt="" />                <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/ExpandedBlockEnd.gif" align="top" alt="" />            }</span></span><span style="color: #000000">            <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    <br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />        </span><span style="color: #000000"></</span><span style="color: #000000">script</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" />    </span><span style="color: #000000"><</span><span style="color: #000000">input type</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">button</span><span style="color: #000000">"</span><span style="color: #000000"> </span><span style="color: #0000ff">class</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">button_1</span><span style="color: #000000">"</span><span style="color: #000000"> id</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">button4</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"> 欏圭洰鍙樻洿 </span><span style="color: #000000">"</span><span style="color: #000000"> onclick</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">btn_change_click()</span><span style="color: #000000">"</span><span style="color: #000000">></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">input type</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">checkbox</span><span style="color: #000000">"</span><span style="color: #000000"> name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">ckids</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">111</span><span style="color: #000000">"</span><span style="color: #000000">/></span><span style="color: #000000"><br /> <img src="http://www.tkk7.com/images/OutliningIndicators/None.gif" align="top" alt="" /></span><span style="color: #000000"><</span><span style="color: #000000">input type</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">checkbox</span><span style="color: #000000">"</span><span style="color: #000000"> name</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">ckids</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">222</span><span style="color: #000000">"</span><span style="color: #000000">/></span></div> <img src ="http://www.tkk7.com/ldwblog/aggbug/305295.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/ldwblog/" target="_blank">David1228</a> 2009-12-09 16:37 <a href="http://www.tkk7.com/ldwblog/archive/2009/12/09/305295.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>js 鑾峰彇瀛楃涓插瓧鑺傞暱搴︺佸幓涓よ竟絀烘牸鏂規硶http://www.tkk7.com/ldwblog/archive/2009/08/17/291488.htmlDavid1228David1228Mon, 17 Aug 2009 06:39:00 GMThttp://www.tkk7.com/ldwblog/archive/2009/08/17/291488.htmlhttp://www.tkk7.com/ldwblog/comments/291488.htmlhttp://www.tkk7.com/ldwblog/archive/2009/08/17/291488.html#Feedback0http://www.tkk7.com/ldwblog/comments/commentRss/291488.htmlhttp://www.tkk7.com/ldwblog/services/trackbacks/291488.html闃呰鍏ㄦ枃

David1228 2009-08-17 14:39 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 国产亚洲精彩视频| h视频在线免费看| 久久精品亚洲中文字幕无码麻豆| 亚洲熟妇av一区二区三区下载| 中文字幕亚洲一区二区三区| 亚洲人成电影网站色| 中文毛片无遮挡高潮免费| 亚洲国产av玩弄放荡人妇| 亚洲精品自产拍在线观看| 成年在线网站免费观看无广告 | 亚洲成A人片在线观看WWW| 91精品免费在线观看| 免费国产草莓视频在线观看黄| 亚洲欧洲国产日韩精品| 日本免费高清一本视频| 无码国产精品一区二区免费式芒果| 亚洲精品无码日韩国产不卡av| 亚洲国产一成人久久精品| 日韩精品无码人妻免费视频| 免费h视频在线观看| 精品亚洲成A人在线观看青青| 亚洲最新视频在线观看| 久99精品视频在线观看婷亚洲片国产一区一级在线 | 国产亚洲精品一品区99热| 毛片免费视频播放| 国内精品免费视频精选在线观看| 亚洲人成人无码.www石榴| 91情国产l精品国产亚洲区| 亚洲欧洲精品成人久久曰影片 | 亚洲一区影音先锋色资源| 亚洲高清免费视频| 好男人视频社区精品免费| 2021精品国产品免费观看| 在线观看特色大片免费网站 | 夫妻免费无码V看片| 99久久国产免费中文无字幕| 久久国产精品免费一区| 亚洲国产精品嫩草影院| 亚洲AV成人噜噜无码网站| 337p日本欧洲亚洲大胆艺术| 久久亚洲精品视频|