锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲M码 欧洲S码SSS222,亚洲国产精品久久66,久久亚洲AV午夜福利精品一区 http://www.tkk7.com/tyjava/category/53273.html鍦ㄥ涔犱腑榪涙錛屽湪榪涙涓涔?zh-cnWed, 25 Nov 2015 20:31:46 GMTWed, 25 Nov 2015 20:31:46 GMT60js鏁板瓧銆佸皬鏁版牎楠屾鍒欒〃杈懼紡http://www.tkk7.com/tyjava/articles/428340.htmlcanry Tongcanry TongTue, 24 Nov 2015 01:09:00 GMThttp://www.tkk7.com/tyjava/articles/428340.htmlhttp://www.tkk7.com/tyjava/comments/428340.htmlhttp://www.tkk7.com/tyjava/articles/428340.html#Feedback0http://www.tkk7.com/tyjava/comments/commentRss/428340.htmlhttp://www.tkk7.com/tyjava/services/trackbacks/428340.html灝忔暟錛?^[\+\-]?\d*?\.?\d*?$/

鍙傝冪綉绔欙細
http://www.cnblogs.com/Fooo/archive/2010/01/06/1640408.html
http://blog.csdn.net/shenlan211314/article/details/5315450
http://www.cnblogs.com/yuwy/articles/770901.html


canry Tong 2015-11-24 09:09 鍙戣〃璇勮
]]>
寮瑰嚭鎻愮ず妗嗗悗涓嶅埛鏂板師欏甸潰http://www.tkk7.com/tyjava/articles/414867.htmlcanry Tongcanry TongWed, 18 Jun 2014 01:34:00 GMThttp://www.tkk7.com/tyjava/articles/414867.htmlhttp://www.tkk7.com/tyjava/comments/414867.htmlhttp://www.tkk7.com/tyjava/articles/414867.html#Feedback0http://www.tkk7.com/tyjava/comments/commentRss/414867.htmlhttp://www.tkk7.com/tyjava/services/trackbacks/414867.html
  <input type="submit" name="鎻愪氦" onclick="return check();" />

鍦ㄥ紩鐢ㄧ殑js浠g爜涓繘琛屽垽鏂紝濡傛灉涓嶅笇鏈涘埛鏂伴〉闈㈡垨璺寵漿鍒欒繑鍥瀎alse錛屽惁鍒欎笉鍋氬鐞嗘垨榪斿洖true錛?br />
function check(){

if(a > b){
alert("a>b");
return false;
}else{
alert("a<=b");
document.getElementById("points-actions-form").action = "/points_insert";//鎺ヤ笅鏉ヨ璺寵漿鐨勯〉闈?br /> }
}



canry Tong 2014-06-18 09:34 鍙戣〃璇勮
]]>
js閲屽瓧絎﹁漿鎹㈡垚鏁板瓧http://www.tkk7.com/tyjava/articles/384422.htmlcanry Tongcanry TongTue, 31 Jul 2012 03:16:00 GMThttp://www.tkk7.com/tyjava/articles/384422.htmlhttp://www.tkk7.com/tyjava/comments/384422.htmlhttp://www.tkk7.com/tyjava/articles/384422.html#Feedback0http://www.tkk7.com/tyjava/comments/commentRss/384422.htmlhttp://www.tkk7.com/tyjava/services/trackbacks/384422.htmlJS瀛楃涓茶漿鎹㈡暟瀛?br />
鏂規硶涓昏鏈変笁縐?br />
杞崲鍑芥暟銆佸己鍒剁被鍨嬭漿鎹€佸埄鐢╦s鍙橀噺寮辯被鍨嬭漿鎹€?br />
1. 杞崲鍑芥暟錛?br />
js鎻愪緵浜唒arseInt()鍜宲arseFloat()涓や釜杞崲鍑芥暟銆傚墠鑰呮妸鍊艱漿鎹㈡垚鏁存暟錛屽悗鑰呮妸鍊艱漿鎹㈡垚嫻偣鏁般傚彧鏈?br />
瀵筍tring綾誨瀷璋冪敤榪欎簺鏂規硶錛岃繖涓や釜鍑芥暟鎵嶈兘姝g‘榪愯錛涘鍏朵粬綾誨瀷榪斿洖鐨勯兘鏄疦aN(Not a Number)銆?br />
鍦ㄥ垽鏂瓧絎︿覆鏄惁鏄暟瀛楀煎墠錛宲arseInt()鍜宲arseFloat()閮戒細浠旂粏鍒嗘瀽璇ュ瓧絎︿覆銆俻arseInt()鏂規硶棣栧厛

鏌ョ湅浣嶇疆0澶勭殑瀛楃錛屽垽鏂畠鏄惁鏄釜鏈夋晥鏁板瓧錛涘鏋滀笉鏄紝璇ユ柟娉曞皢榪斿洖NaN錛屼笉鍐嶇戶緇墽琛屽叾浠栨搷浣溿?br />
浣嗗鏋滆瀛楃鏄湁鏁堟暟瀛楋紝璇ユ柟娉曞皢鏌ョ湅浣嶇疆1澶勭殑瀛楃錛岃繘琛屽悓鏍風殑嫻嬭瘯銆傝繖涓榪囩▼灝嗘寔緇埌鍙戠幇闈炴湁鏁?br />
鏁板瓧鐨勫瓧絎︿負姝紝姝ゆ椂parseInt()灝嗘妸璇ュ瓧絎︿箣鍓嶇殑瀛楃涓茶漿鎹㈡垚鏁板瓧銆?br />
渚嬪錛屽鏋滆鎶婂瓧絎︿覆 "1234blue "杞崲鎴愭暣鏁幫紝閭d箞parseInt()灝嗚繑鍥?234錛屽洜涓哄綋瀹冩嫻嬪埌瀛楃b鏃訛紝

灝變細鍋滄媯嫻嬭繃紼嬨傚瓧絎︿覆涓寘鍚殑鏁板瓧瀛楅潰閲忎細琚紜漿鎹負鏁板瓧錛屽洜姝ゅ瓧絎︿覆 "0xA "浼氳姝g‘杞崲涓?br />
鏁板瓧10銆備笉榪囷紝瀛楃涓?"22.5 "灝嗚杞崲鎴?2錛屽洜涓哄浜庢暣鏁版潵璇達紝灝忔暟鐐規槸鏃犳晥瀛楃銆備竴浜涚ず渚嬪涓嬶細

parseInt("1234blue");   //returns   1234
parseInt("0xA");   //returns   10
parseInt("22.5");   //returns   22
parseInt("blue");   //returns   NaN

parseInt()鏂規硶榪樻湁鍩烘ā寮忥紝鍙互鎶婁簩榪涘埗銆佸叓榪涘埗銆佸崄鍏繘鍒舵垨鍏朵粬浠諱綍榪涘埗鐨勫瓧絎︿覆杞崲鎴愭暣鏁般傚熀

鏄敱parseInt()鏂規硶鐨勭浜屼釜鍙傛暟鎸囧畾鐨勶紝鎵浠ヨ瑙f瀽鍗佸叚榪涘埗鐨勫鹼紝闇濡備笅璋冪敤parseInt()鏂規硶錛?br />parseInt("AF",   16);   //returns   175
褰撶劧錛屽浜岃繘鍒躲佸叓榪涘埗錛岀敋鑷沖崄榪涘埗錛堥粯璁ゆā寮忥級錛岄兘鍙互榪欐牱璋冪敤parseInt()鏂規硶錛?br />parseInt("10",   2);   //returns   2
parseInt("10",   8);   //returns   8
parseInt("10",   10);   //returns   10
濡傛灉鍗佽繘鍒舵暟鍖呭惈鍓嶅0錛岄偅涔堟渶濂介噰鐢ㄥ熀鏁?0錛岃繖鏍鋒墠涓嶄細鎰忓鍦板緱鍒板叓榪涘埗鐨勫箋備緥濡傦細
parseInt("010");   //returns   8
parseInt("010",   8);   //returns   8
parseInt("010",   10);   //returns   10
鍦ㄨ繖孌典唬鐮佷腑錛屼袱琛屼唬鐮侀兘鎶婂瓧絎︿覆 "010 "瑙f瀽鎴愪簡涓涓暟瀛椼傜涓琛屼唬鐮佹妸榪欎釜瀛楃涓茬湅浣滃叓榪涘埗鐨勫?br />
錛岃В鏋愬畠鐨勬柟寮忎笌絎簩琛屼唬鐮侊紙澹版槑鍩烘暟涓?錛夌浉鍚屻傛渶鍚庝竴琛屼唬鐮佸0鏄庡熀鏁頒負10錛屾墍浠Num3鏈鍚庣瓑浜?0

銆?br />
parseFloat()鏂規硶涓巔arseInt()鏂規硶鐨勫鐞嗘柟寮忕浉浼鹼紝浠庝綅緗?寮濮嬫煡鐪嬫瘡涓瓧絎︼紝鐩村埌鎵懼埌絎竴涓潪鏈夋晥

鐨勫瓧絎︿負姝紝鐒跺悗鎶婅瀛楃涔嬪墠鐨勫瓧絎︿覆杞崲鎴愭暟瀛椼備笉榪囷紝瀵逛簬榪欎釜鏂規硶鏉ヨ錛岀涓涓嚭鐜扮殑灝忔暟鐐規槸

鏈夋晥瀛楃銆傚鏋滄湁涓や釜灝忔暟鐐癸紝絎簩涓皬鏁扮偣灝嗚鐪嬩綔鏃犳晥鐨勶紝 parseFloat()鏂規硶浼氭妸榪欎釜灝忔暟鐐逛箣鍓嶇殑

瀛楃涓茶漿鎹㈡垚鏁板瓧銆傝繖鎰忓懗鐫瀛楃涓?"22.34.5 "灝嗚瑙f瀽鎴?2.34銆?br />浣跨敤parseFloat()鏂規硶鐨勫彟涓涓嶅悓涔嬪鍦ㄤ簬錛屽瓧絎︿覆蹇呴』浠ュ崄榪涘埗褰㈠紡琛ㄧず嫻偣鏁幫紝鑰屼笉鑳界敤鍏繘鍒跺艦寮?br />
鎴栧崄鍏繘鍒跺艦寮忋傝
鏂規硶浼氬拷鐣ュ墠瀵?錛屾墍浠ュ叓榪涘埗鏁?908灝嗚瑙f瀽涓?08銆傚浜庡崄鍏繘鍒舵暟0xA錛岃鏂規硶灝嗚繑鍥濶aN錛屽洜涓哄湪嫻?br />
鐐規暟涓紝x涓嶆槸鏈夋晥瀛楃銆傛澶栵紝parseFloat()涔熸病鏈夊熀妯″紡銆?br />
涓嬮潰鏄嬌鐢╬arseFloat()鏂規硶鐨勭ず渚嬶細
parseFloat("1234blue");   //returns   1234.0
parseFloat("0xA");   //returns   NaN
parseFloat("22.5");   //returns   22.5
parseFloat("22.34.5");   //returns   22.34
parseFloat("0908");   //returns   908
parseFloat("blue");   //returns   NaN

2. 寮哄埗綾誨瀷杞崲

榪樺彲浣跨敤寮哄埗綾誨瀷杞崲錛坱ype casting錛夊鐞嗚漿鎹㈠肩殑綾誨瀷銆備嬌鐢ㄥ己鍒剁被鍨嬭漿鎹㈠彲浠ヨ闂壒瀹氱殑鍊鹼紝鍗充嬌

瀹冩槸鍙︿竴縐嶇被鍨嬬殑銆?br />ECMAScript涓彲鐢ㄧ殑3縐嶅己鍒剁被鍨嬭漿鎹㈠涓嬶細
Boolean(value)——鎶婄粰瀹氱殑鍊艱漿鎹㈡垚Boolean鍨嬶紱
Number(value)——鎶婄粰瀹氱殑鍊艱漿鎹㈡垚鏁板瓧錛堝彲浠ユ槸鏁存暟鎴栨誕鐐規暟錛夛紱
String(value)——鎶婄粰瀹氱殑鍊艱漿鎹㈡垚瀛楃涓層?br />鐢ㄨ繖涓変釜鍑芥暟涔嬩竴杞崲鍊鹼紝灝嗗垱寤轟竴涓柊鍊鹼紝瀛樻斁鐢卞師濮嬪肩洿鎺ヨ漿鎹㈡垚鐨勫箋傝繖浼氶犳垚鎰忔兂涓嶅埌鐨勫悗鏋溿?br />褰撹杞崲鐨勫兼槸鑷沖皯鏈変竴涓瓧絎︾殑瀛楃涓層侀潪0鏁板瓧鎴栧璞★紙涓嬩竴鑺傚皢璁ㄨ榪欎竴鐐癸級鏃訛紝Boolean()鍑芥暟灝?br />
榪斿洖true銆傚鏋滆鍊兼槸絀哄瓧絎︿覆銆佹暟瀛?銆乽ndefined鎴杗ull錛屽畠灝嗚繑鍥瀎alse銆?br />
鍙互鐢ㄤ笅闈㈢殑浠g爜孌墊祴璇旴oolean鍨嬬殑寮哄埗綾誨瀷杞崲銆?br />
Boolean("");   //false   –   empty   string
Boolean("hi");   //true   –   non-empty   string
Boolean(100);   //true   –   non-zero   number
Boolean(null);   //false   -   null
Boolean(0);   //false   -   zero
Boolean(new   Object());   //true   –   object

Number()鐨勫己鍒剁被鍨嬭漿鎹笌parseInt()鍜宲arseFloat()鏂規硶鐨勫鐞嗘柟寮忕浉浼鹼紝鍙槸瀹冭漿鎹㈢殑鏄暣涓鹼紝鑰?br />
涓嶆槸閮ㄥ垎鍊箋傝繕璁板緱鍚楋紝parseInt()鍜宲arseFloat()鏂規硶鍙漿鎹㈢涓涓棤鏁堝瓧絎︿箣鍓嶇殑瀛楃涓詫紝鍥犳

"4.5.6 "灝嗚杞崲涓?"4.5 "銆傜敤Number()榪涜寮哄埗綾誨瀷杞崲錛?"4.5.6 "灝嗚繑鍥濶aN錛屽洜涓烘暣涓瓧絎︿覆鍊間笉

鑳借漿鎹㈡垚鏁板瓧銆傚鏋滃瓧絎︿覆鍊艱兘琚畬鏁村湴杞崲錛孨umber()灝嗗垽鏂槸璋冪敤parseInt()鏂規硶榪樻槸璋冪敤

parseFloat()鏂規硶銆備笅琛ㄨ鏄庝簡瀵逛笉鍚岀殑鍊艱皟鐢∟umber()鏂規硶浼氬彂鐢熺殑鎯呭喌錛?br />
鐢ㄣ銆娉?緇撱銆鏋?br />Number(false)   0
Number(true)   1
Number(undefined)   NaN
Number(null)   0
Number( "5.5 ")   5.5
Number( "56 ")   56
Number( "5.6.7 ")   NaN
Number(new   Object())   NaN
Number(100)   100  

鏈鍚庝竴縐嶅己鍒剁被鍨嬭漿鎹㈡柟娉昐tring()鏄渶綆鍗曠殑錛屽洜涓哄畠鍙妸浠諱綍鍊艱漿鎹㈡垚瀛楃涓層傝鎵ц榪欑寮哄埗綾誨瀷

杞崲錛屽彧闇瑕佽皟鐢ㄤ綔涓哄弬鏁頒紶閫掕繘鏉ョ殑鍊肩殑 toString()鏂規硶錛屽嵆鎶?杞崲鎴?nbsp;  "1 "錛屾妸true杞崲鎴?"true

"錛屾妸false杞崲鎴?"false "錛屼緷姝ょ被鎺ㄣ傚己鍒惰漿鎹㈡垚瀛楃涓插拰璋冪敤toString()鏂規硶鐨勫敮涓涓嶅悓涔嬪鍦ㄤ簬錛?br />
瀵筺ull鎴杣ndefined鍊煎己鍒剁被鍨嬭漿鎹㈠彲浠ョ敓鎴愬瓧絎︿覆鑰屼笉寮曞彂閿欒錛?br />
var   s1   =   String(null);   //"null"
var   oNull   =   null;
var   s2   =   oNull.toString();   //won’t   work,   causes   an   error

3. 鍒╃敤js鍙橀噺寮辯被鍨嬭漿鎹?br />
涓句釜灝忎緥瀛愶紝涓鐪嬶紝灝變細鏄庣櫧浜嗐?br /><script>
var   str= '012.345 ';
var   x   =   str-0;
x   =   x*1;
</script>

涓婁緥鍒╃敤浜唈s鐨勫急綾誨瀷鐨勭壒鐐癸紝鍙繘琛屼簡綆楁湳榪愮畻錛屽疄鐜頒簡瀛楃涓插埌鏁板瓧鐨勭被鍨嬭漿鎹紝涓嶈繃榪欎釜鏂規硶榪樻槸

涓嶆帹鑽愮殑銆?/div>

canry Tong 2012-07-31 11:16 鍙戣〃璇勮
]]>
鍚勭鏍¢獙http://www.tkk7.com/tyjava/articles/382618.htmlcanry Tongcanry TongMon, 09 Jul 2012 08:30:00 GMThttp://www.tkk7.com/tyjava/articles/382618.htmlhttp://www.tkk7.com/tyjava/comments/382618.htmlhttp://www.tkk7.com/tyjava/articles/382618.html#Feedback0http://www.tkk7.com/tyjava/comments/commentRss/382618.htmlhttp://www.tkk7.com/tyjava/services/trackbacks/382618.html1 鏁板瓧鏍¢獙

if(isNaN($("#MARKET_TEL2").val())){
                    alert("鐢佃瘽涓惈鏈夐潪娉曞瓧絎︼紒");
                    return;
                }
2 email鏍¢獙

var pattern = /^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/;
if(!pattern.test($("#id10").val())){
            alert("鐢靛瓙閭歡鏍煎紡涓嶆紜紒");
            return;
            }

3 鏃ユ湡鏍煎紡鏍¢獙(2012-07-09)

var a=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})/;
if (!a.test($("#CONTACT_DATE").val())){
alert("鏃ユ湡鏍煎紡搴旇涓簓yyy-mm-dd!")
return ;
}

娉細鏃ユ湡杈撳叆鐜板湪鍩烘湰浣跨敤鏃ユ湡鎺т歡鎺у埗錛屾洿鍔犳柟渚褲?/div>


]]>disable鍜屾敼鍙樿儗鏅鑹?/title><link>http://www.tkk7.com/tyjava/articles/382551.html</link><dc:creator>canry Tong</dc:creator><author>canry Tong</author><pubDate>Sun, 08 Jul 2012 11:47:00 GMT</pubDate><guid>http://www.tkk7.com/tyjava/articles/382551.html</guid><wfw:comment>http://www.tkk7.com/tyjava/comments/382551.html</wfw:comment><comments>http://www.tkk7.com/tyjava/articles/382551.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/tyjava/comments/commentRss/382551.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/tyjava/services/trackbacks/382551.html</trackback:ping><description><![CDATA[<div>function change(){<br />    if($("#CONTACT_SCHEDULED_YN").val()==0){<br />        $('#CONTACT_SCHEDULED_TIME').attr('disabled',false)<br />    }else{<br />        $('#CONTACT_SCHEDULED_TIME').attr('disabled','disabled');<br />        //鎴栬?('#CONTACT_SCHEDULED_TIME').attr('disabled',true);<br />        document.getElementById('CONTACT_SCHEDULED_TIME').style.backgroundColor="#EBEBE4";<br />    }<br />}</div><img src ="http://www.tkk7.com/tyjava/aggbug/382551.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/tyjava/" target="_blank">canry Tong</a> 2012-07-08 19:47 <a href="http://www.tkk7.com/tyjava/articles/382551.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鍚庨http://www.tkk7.com/tyjava/articles/382552.htmlcanry Tongcanry TongSun, 08 Jul 2012 11:47:00 GMThttp://www.tkk7.com/tyjava/articles/382552.htmlhttp://www.tkk7.com/tyjava/comments/382552.htmlhttp://www.tkk7.com/tyjava/articles/382552.html#Feedback0http://www.tkk7.com/tyjava/comments/commentRss/382552.htmlhttp://www.tkk7.com/tyjava/services/trackbacks/382552.html1 history.go(-1);

2
window.history.go(-1);

3 javascript:history.go(-1);


canry Tong 2012-07-08 19:47 鍙戣〃璇勮
]]>
寮瑰嚭妗?/title><link>http://www.tkk7.com/tyjava/articles/382525.html</link><dc:creator>canry Tong</dc:creator><author>canry Tong</author><pubDate>Sun, 08 Jul 2012 06:26:00 GMT</pubDate><guid>http://www.tkk7.com/tyjava/articles/382525.html</guid><wfw:comment>http://www.tkk7.com/tyjava/comments/382525.html</wfw:comment><comments>http://www.tkk7.com/tyjava/articles/382525.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/tyjava/comments/commentRss/382525.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/tyjava/services/trackbacks/382525.html</trackback:ping><description><![CDATA[<div><strong>2縐?/strong><br /><br /><strong>1 姣旇緝綆鍗曠殑</strong><br /><br />function openwin2() {<br />    window.open ("que_call_add.tan2.jsp", "newwindow", "height=500, width=540, toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no")<br />}<br /><br /><strong>2 杈冧負澶嶆潅鐨?/strong><br /><br />function openwin1() {<br />   var popup_width = 640;<br />   var popup_height = 350;<br />   var popup_left = (screen.width - popup_width) / 2;<br />   var popup_top = (screen.height - popup_height) / 2;<br />   var popup_scrollbars = "no";<br /> <br />   var popup_property = "width=" + popup_width;<br />   var popup_property = popup_property + ",height=" + popup_height;<br />   var popup_property = popup_property + ",left=" + popup_left;<br />   var popup_property = popup_property + ",top=" + popup_top;<br />   var popup_property = popup_property + ",scrollbars=" + popup_scrollbars;<br /> <br />   window.open('/html/call/toAddFromCallMarketContactAction.do','marketFrom',popup_property);<br />}</div><img src ="http://www.tkk7.com/tyjava/aggbug/382525.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/tyjava/" target="_blank">canry Tong</a> 2012-07-08 14:26 <a href="http://www.tkk7.com/tyjava/articles/382525.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>js涓拰java涓瓧絎︿覆鎴彇鍖哄埆http://www.tkk7.com/tyjava/articles/382523.htmlcanry Tongcanry TongSun, 08 Jul 2012 06:10:00 GMThttp://www.tkk7.com/tyjava/articles/382523.htmlhttp://www.tkk7.com/tyjava/comments/382523.htmlhttp://www.tkk7.com/tyjava/articles/382523.html#Feedback0http://www.tkk7.com/tyjava/comments/commentRss/382523.htmlhttp://www.tkk7.com/tyjava/services/trackbacks/382523.html1 js涓?substr()鏂規硶

2 java涓?subString()鏂規硶

canry Tong 2012-07-08 14:10 鍙戣〃璇勮
]]>
jquery 涓殑 $(鈥?鈥? 涓?js涓殑document.getElementById(鈥溾? 鐨勫尯鍒?/title><link>http://www.tkk7.com/tyjava/articles/372007.html</link><dc:creator>canry Tong</dc:creator><author>canry Tong</author><pubDate>Fri, 16 Mar 2012 01:52:00 GMT</pubDate><guid>http://www.tkk7.com/tyjava/articles/372007.html</guid><wfw:comment>http://www.tkk7.com/tyjava/comments/372007.html</wfw:comment><comments>http://www.tkk7.com/tyjava/articles/372007.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.tkk7.com/tyjava/comments/commentRss/372007.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/tyjava/services/trackbacks/372007.html</trackback:ping><description><![CDATA[<div>浠ュ墠娌℃敞鎰忚繃錛岃涓簀query 涓殑 $("#") 涓?document.getElementById("") 鏄竴鍥炰簨錛屾寚鐨勬槸鍚屼竴涓笢瑗褲?/div>榪欐欏圭洰寮鍙戝湪浣跨敤楠岃瘉鐮佺敓鎴愮殑鏃跺欙紝鍙戠幇涓よ呬笉鍚岋紝浣跨敤鏃墮渶瑕佹敞鎰忥紒<br /><br />閫氳繃浠ヤ笅嫻嬭瘯錛?br />js涓唬鐮?br /><div><p style="text-align: left;" align="left"><span style="font-size:10.0pt;font-family: "Courier New";color:#7F0055;">function </span><span style="font-size:10.0pt;font-family:"Courier New";color:black;">reloadValidCode(o) </span><span style="font-size: 10pt; font-family: "Courier New"; color: #7f0055;">{ <br /></span></p><p style="text-align:left;text-autospace:none" align="left"><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055;">alert(o);<br /></span></p> <p style="text-align:left;text-autospace:none" align="left"><span style="font-size: 10pt; font-family: "Courier New"; color: #7f0055;">    </span><span style="font-size: 10.0pt;font-family:"Courier New";color:black;">o.src = </span><span style="font-size:10.0pt;font-family:"Courier New";color:#8E00FF;">"${pageContext.request.contextPath }/validCodeServlet?timed=" </span><span style="font-size:10.0pt; font-family:"Courier New";color:black;">+ </span><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055;">new </span><span style="font-size:10.0pt; font-family:"Courier New";color:black;">Date().getMilliseconds(); </span></p> <p style="text-align:left;text-autospace:none" align="left"><span style="font-size:10.0pt;font-family: "Courier New";color:#7F0055;">} </span></p> <p style="text-align:left;text-autospace:none" align="left"> </p> <p style="text-align: left;" align="left"><span style="font-size:10.0pt;font-family: "Courier New";color:#7F0055;">function </span><span style="font-size:10.0pt;font-family:"Courier New";color:black;">refresh() </span><span style="font-size: 10pt; font-family: "Courier New"; color: #7f0055;">{ <br /></span></p><p style="text-align:left;text-autospace:none" align="left"><span style="font-size:10.0pt; font-family:"Courier New";color:#7F0055;">alert($("#imageYZ"));<br /></span></p> <p style="text-align:left;text-autospace:none" align="left"><span style="font-size:10.0pt;font-family: "Courier New";color:#7F0055;">   </span><span style="font-size: 10.0pt;font-family:"Courier New";color:black;">document.getElementById(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#8E00FF;">"imageYZ"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black;">).src = </span><span style="font-size:10.0pt;font-family:"Courier New"; color:#8E00FF;">"${pageContext.request.contextPath }/validCodeServlet?timed="</span><span style="font-size:10.0pt; font-family:"Courier New";color:black;"> + </span><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055;">new </span><span style="font-size:10.0pt; font-family:"Courier New";color:black;">Date().getMilliseconds(); </span></p> <span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055;">}<br /><br /></span></div>jsp涓唬鐮?br /><div><div> <p style="text-align:left;" align="left"><span style="font-size:10.0pt;font-family:"Courier New";color:teal;"><</span><span style="font-size:10.0pt; font-family:"Courier New";color:#3F7F7F;">img </span><span style="font-size:10.0pt;font-family:"Courier New";color:#7F007F;">src</span><span style="font-size:10.0pt; font-family:"Courier New";color:black;">=</span><span style="font-size:10.0pt;font-family:"Courier New";">"<span style="color:black">${pageContext.request.contextPath }</span><span style="color:#2A00FF">/validCodeServlet</span>" <span style="color:#7F007F">id</span><span style="color:black">=</span><span style="color:#2A00FF">"imageYZ" </span><span style="color:#7F007F">alt</span><span style="color:black">=</span><span style="color:#2A00FF">"</span></span><span style="font-size:10.0pt;font-family:瀹嬩綋;Courier New";Courier New";Courier New"; color:black;">鎹竴寮?/span><span style="font-size: 10.0pt;font-family:"Courier New";color:#2A00FF;">" </span><span style="font-size:10.0pt;font-family:"Courier New";color:#7F007F;">onclick</span><span style="font-size:10.0pt; font-family:"Courier New";color:black;">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF;">"reloadValidCode(this)"</span><span style="font-size:10.0pt;font-family:"Courier New";color:teal;">/></span></p> <p style="text-align: left;" align="left"><span style="font-size:10.0pt;font-family:瀹嬩綋;Courier New";Courier New";Courier New"; color:black;">鐪嬩笉娓?/span><span style="font-size: 10.0pt;font-family:"Courier New";color:black;">?</span><span style="font-size:10.0pt;font-family:"Courier New";color:teal;"><</span><span style="font-size:10.0pt; font-family:"Courier New";color:#3F7F7F;">a </span><span style="font-size:10.0pt;font-family:"Courier New";color:#7F007F;">href</span><span style="font-size:10.0pt; font-family:"Courier New";color:black;">=</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF;">"#this" </span><span style="font-size:10.0pt;font-family:"Courier New";color:#7F007F;">onclick</span><span style="font-size:10.0pt;font-family:"Courier New"; color:black;">=</span><span style="font-size: 10.0pt;font-family:"Courier New";color:#2A00FF;">"refresh();"</span><span style="font-size:10.0pt;font-family:"Courier New";color:teal;">></span> <span style="font-size:10.0pt;font-family:瀹嬩綋;Courier New";Courier New";Courier New"; color:black;">鎹竴寮?/span><span style="font-size: 10.0pt;font-family:"Courier New";color:teal;"></</span><span style="font-size:10.0pt;font-family:"Courier New";color:#3F7F7F;">a</span><span style="font-size: 10pt; font-family: "Courier New"; color: teal;">></span></p></div></div><div><br />鎴戝緢鎵撶畻鍦╮efresh()鍑芥暟涓嬌鐢?div><span style="font-size: 10pt; font-family: "Courier New"; color: black;"><div><span style="font-size:10.0pt; font-family:"Courier New";color:#7F0055;">$("#imageYz")</span>.src = <span style="font-size:10.0pt;font-family:"Courier New";color:#8E00FF;">"${pageContext.request.contextPath }/validCodeServlet?timed=" </span><span style="font-size:10.0pt; font-family:"Courier New";color:black;">+ </span><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055;">new </span><span style="font-size: 10pt; font-family: "Courier New"; color: black;">Date().getMilliseconds(); <br />榪涜璁劇疆錛屼絾鏄彂鐜頒笉琛岋紱鍘熸潵alert(o)鐨勭粨鏋滄槸錛?div>[object HTMLCanvasElement]</div></span></div></span></div></div>鑰?span style="font-size: 10pt; font-family: "Courier New"; color: black;"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">alert($("#imageYZ"))鐨勭粨鏋滄槸錛?br /></span></span><div><span style="font-size: 10pt; font-family: "Courier New"; color: black;"><span style="font-size: 10pt; font-family: "Courier New"; color: black;">[objec Object]<br />浠庤繖閲屼笉闅劇湅鍑轟袱鑰呯湡鐨勪笉涓鏍鳳紱<div>鍐嶇敤firebug璋冭瘯鐪嬩竴涓嬶紝<br />$("#imageYZ")鍜宒ocument.getElementById("imageYZ")鍊掑簳鏄粈涔堝唴瀹廣傝皟璇曠粨鏋滃涓嬶細<br /><br />$("#imageYZ")                         [img#imageYZ]<br />    <br />document.getElementById("imageYZ")    img#imageYZ<br /><br />鎯沖繀錛岀湅鍒拌繖閲岋紝涓嶇敤鎴戣錛屽ぇ瀹朵篃浼氭兂鍒扮粨鏋滀簡銆?br /><br />瀹為檯涓婏紝$("#imageYZ")[0]絳夊悓浜?document.getElementById("imageYZ")</div><br /> </span></span></div><img src ="http://www.tkk7.com/tyjava/aggbug/372007.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/tyjava/" target="_blank">canry Tong</a> 2012-03-16 09:52 <a href="http://www.tkk7.com/tyjava/articles/372007.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <p>感谢您访问我们的网站,您可能还对以下资源感兴趣:</p> <a href="http://www.tkk7.com/" title="亚洲av成人片在线观看">亚洲av成人片在线观看</a> <div class="friend-links"> </div> </div> </footer> 主站蜘蛛池模板: <a href="http://lkzrgy.com" target="_blank">亚洲欧洲日产国码久在线观看</a>| <a href="http://dqmovie.com" target="_blank">亚洲国产成人久久一区WWW</a>| <a href="http://kmp77.com" target="_blank">国产综合亚洲专区在线</a>| <a href="http://wulegu.com" target="_blank">日韩中文字幕免费视频</a>| <a href="http://977446.com" target="_blank">亚洲精品岛国片在线观看</a>| <a href="http://aizaicc.com" target="_blank">亚洲a∨无码一区二区</a>| <a href="http://6609929.com" target="_blank">h片在线免费观看</a>| <a href="http://www2626cf.com" target="_blank">亚洲AV成人无码久久精品老人 </a>| <a href="http://szybzc.com" target="_blank">亚洲视频在线视频</a>| <a href="http://zdxxxx.com" target="_blank">伊人久久大香线蕉免费视频</a>| <a href="http://jomujy.com" target="_blank">亚洲人成电影在线播放</a>| <a href="http://glgg99.com" target="_blank">日韩毛片在线免费观看</a>| <a href="http://sdhgjscl.com" target="_blank">亚洲av无码专区在线观看素人</a>| <a href="http://chowngroup.com" target="_blank">含羞草国产亚洲精品岁国产精品 </a>| <a href="http://yg1617.com" target="_blank">特黄特色的大片观看免费视频</a>| <a href="http://5916733.com" target="_blank">国产高清在线免费视频</a>| <a href="http://b2b-chinese.com" target="_blank">亚洲大码熟女在线观看</a>| <a href="http://airou08.com" target="_blank">国产免费人人看大香伊</a>| <a href="http://52099jy.com" target="_blank">高潮内射免费看片</a>| <a href="http://holdengong.com" target="_blank">亚洲国产V高清在线观看</a>| <a href="http://fenglufzjx.com" target="_blank">人人爽人人爽人人片A免费</a>| <a href="http://bentuxinli.com" target="_blank">亚洲中文字幕无码爆乳av中文 </a>| <a href="http://zblinghang.com" target="_blank">亚洲欧美aⅴ在线资源</a>| <a href="http://hn283.com" target="_blank">性感美女视频免费网站午夜</a>| <a href="http://muguangmi.com" target="_blank">亚洲午夜无码久久久久软件 </a>| <a href="http://0515bh.com" target="_blank">四虎影在线永久免费四虎地址8848aa</a>| <a href="http://yuase.com" target="_blank">亚洲AV无码国产精品永久一区</a>| <a href="http://wjjccw.com" target="_blank">国产一级一片免费播放</a>| <a href="http://yuase.com" target="_blank">一级一级一片免费高清</a>| <a href="http://116603a.com" target="_blank">日韩视频在线精品视频免费观看</a>| <a href="http://kmrghj.com" target="_blank">亚洲成a人片在线观</a>| <a href="http://vip98888.com" target="_blank">性做久久久久久免费观看</a>| <a href="http://4001120002.com" target="_blank">亚洲日本成本人观看</a>| <a href="http://zjztauto.com" target="_blank">免费一级毛片一级毛片aa</a>| <a href="http://zanyoo.com" target="_blank">一级黄色免费网站</a>| <a href="http://yongfu-sh.com" target="_blank">亚洲国产精品特色大片观看完整版 </a>| <a href="http://a666999.com" target="_blank">免费中文字幕在线</a>| <a href="http://fholaer.com" target="_blank">www免费黄色网</a>| <a href="http://tlyihong.com" target="_blank">久久精品九九亚洲精品</a>| <a href="http://xxxxyz.com" target="_blank">午夜两性色视频免费网站</a>| <a href="http://heifengmi.com" target="_blank">国产精品亚洲综合天堂夜夜</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>