锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲国产亚洲片在线观看播放,久久国产亚洲观看,亚洲成aⅴ人在线观看 http://www.tkk7.com/hellxoul/category/51193.htmlzh-cn Sat, 10 Jan 2015 15:44:30 GMT Sat, 10 Jan 2015 15:44:30 GMT 60 iframe楂樺害鑷傚簲 http://www.tkk7.com/hellxoul/archive/2015/01/05/422054.htmlhellxoul hellxoul Mon, 05 Jan 2015 03:52:00 GMT http://www.tkk7.com/hellxoul/archive/2015/01/05/422054.html http://www.tkk7.com/hellxoul/comments/422054.html http://www.tkk7.com/hellxoul/archive/2015/01/05/422054.html#Feedback 0 http://www.tkk7.com/hellxoul/comments/commentRss/422054.html http://www.tkk7.com/hellxoul/services/trackbacks/422054.html 闃呰鍏ㄦ枃 ]]> js楠岃瘉妗嗘灦 http://www.tkk7.com/hellxoul/archive/2013/10/10/404823.htmlhellxoul hellxoul Thu, 10 Oct 2013 02:37:00 GMT http://www.tkk7.com/hellxoul/archive/2013/10/10/404823.html http://www.tkk7.com/hellxoul/comments/404823.html http://www.tkk7.com/hellxoul/archive/2013/10/10/404823.html#Feedback 0 http://www.tkk7.com/hellxoul/comments/commentRss/404823.html http://www.tkk7.com/hellxoul/services/trackbacks/404823.html one js validation framework
http://niceue.com/validator/demo/twitter-js.php?theme=yellow_right_effect
]]>jquery 鑾峰彇td涓殑鍊?/title> http://www.tkk7.com/hellxoul/archive/2012/03/22/372447.htmlhellxoul hellxoul Thu, 22 Mar 2012 04:07:00 GMT http://www.tkk7.com/hellxoul/archive/2012/03/22/372447.html http://www.tkk7.com/hellxoul/comments/372447.html http://www.tkk7.com/hellxoul/archive/2012/03/22/372447.html#Feedback 2 http://www.tkk7.com/hellxoul/comments/commentRss/372447.html http://www.tkk7.com/hellxoul/services/trackbacks/372447.html 1 $(document).ready( function () { 2 $('#test tr').each( function (){ 3 alert($( this ).children('td').eq( 1 ).html()); 4 }); 5 }); ]]> jquery Ajax 鎻愪氦 http://www.tkk7.com/hellxoul/archive/2012/03/22/372445.htmlhellxoul hellxoul Thu, 22 Mar 2012 04:04:00 GMT http://www.tkk7.com/hellxoul/archive/2012/03/22/372445.html http://www.tkk7.com/hellxoul/comments/372445.html http://www.tkk7.com/hellxoul/archive/2012/03/22/372445.html#Feedback 1 http://www.tkk7.com/hellxoul/comments/commentRss/372445.html http://www.tkk7.com/hellxoul/services/trackbacks/372445.html 閴翠簬欏圭洰闇瑕侊紝寮濮嬭竟鐪婦emo杈逛嬌鐢↗Query銆傜幇灝嗛」鐩腑鏆傛椂閬囧埌鐨勪笁縐嶄嬌鐢↗Query榪涜Ajax鎻愪氦鐨勬柟寮忓仛涓葷粨銆傚洜涓烘病鏈夌郴緇熷涔狅紝鏈夌偣灞卞錛屽彧姹傚湪欏圭洰涓疄鐜板姛鑳姐? 1.URL+GET鍙傛暟鎻愪氦 榪欑鏂瑰紡鏄渶鏅亶鐨勶紝鍙鍖呭惈jquery.js灝卞彲浠ユ甯鎬嬌鐢ㄣ? Java浠g爜
$.ajax({ type: "get", url: "/openshop/control/getCustomerAddress", data:"customerId="+$.trim($("#customerId")[0].value), cache: false, success: function(msg){ $("#addressInfo")[0].innerHTML = msg; showTipWindow(newid,oldid,0,e); } }); 2.鏁翠釜form鐨勬彁浜? 濡傛灉涓嶄嬌鐢↗Query鐨刦orm ajax鎻愪氦錛屽垯蹇呴』鎵嬪姩緇勮鎵鏈夌殑琛ㄥ崟鍏冪礌閿煎銆傜幇鍦ㄤ嬌鐢↗Query鐨勪竴涓彃浠訛細jquery.form.js銆傚皢jquery.js錛宩query.form.js鏂囦歡閮藉寘鍚埌欏圭洰涓傜劧鍚庝嬌鐢ㄥ涓嬩唬鐮侊細 Java浠g爜
$('#'+newid+'_frmNewAddr').ajaxForm({ beforeSubmit: validate ,success: showResponse}); .... function validate(formData, jqForm, options){ var form = jqForm[0]; if (!form.new_recipient.value ) { alert('鏀朵歡浜哄繀欏誨~鍐欙紒'); return false; } if (!form.new_address.value ) { alert('鏀朵歡鍦板潃蹇呴』濉啓錛?); return false; } .... return true; } function showResponse(responseText, statusText, xhr, $form){ var address = eval("("+removeDivTag(responseText)+")"); $("#address_recipient")[0].innerHTML = address.recipient; $("#address_address")[0].innerHTML = address.address; $("#address_organization")[0].innerHTML = address.organization; ...... } 鍏朵腑$('#'+newid+'_frmNewAddr')鑾峰彇琛ㄥ崟瀵硅薄錛屽叾涓璪eforeSubmit瀵瑰簲鐨剉alidate()鏄竴涓〃鍗曟彁浜ゅ墠璋冪敤 鐨勬柟娉曪紝鍙互鍦ㄦ鏂規硶涓仛琛ㄥ崟楠岃瘉錛屽彧鏈夎鏂規硶榪斿洖true錛岃〃鍗曟墠浼氭彁浜ゃ傝宻uccess瀵瑰簲鐨剆howResponse鍒欐槸ajax瀵硅薄鎴愬姛榪斿洖鍚?鐨勫洖璋冩柟娉曪紝鍙互灝嗗洖璋冨緱鍒扮殑鍐呭鏃犲埛鏂板憟鐜板埌褰撳墠欏甸潰鐨勭浉搴斿尯鍩熶腑銆傝緝鏂逛究鐨勫仛娉曟槸鍦ㄦ湇鍔″櫒绔互JSON鏍煎紡榪斿洖鏁版嵁錛岀劧鍚庡湪鍥炶皟鍑芥暟涓嬌鐢?eval("("+removeDivTag(responseText)+")")鏂規硶鑾峰彇鍏鋒湁鎸囧畾緇撴瀯鐨刯s瀵硅薄銆? 3.浣跨敤JQuery鍋氭枃浠朵笂浼犵殑ajax鎻愪氦 鏈漢瀵繪壘騫舵瘮杈冧簡澶氱ajax鎴栫被ajax鏂瑰紡涓婁紶鏂囦歡鐨勫仛娉?璀浣跨敤iframe絳夈傛渶緇堣寰椾嬌鐢↗Query鏄渶鏂逛究鐨勶紝涓嶇煡鍚勪綅浣跨敤鍚庢槸鍚︿笌鎴戞湁 鍚屾劅銆傛垜灝嗘垜鐩墠鐨勫仛娉曟葷粨濡備笅錛岄鍏堥』鍦ㄩ」鐩腑鍖呭惈jquery.js錛宎jaxfileupload.js錛宎jaxfileupload.css銆?Java浠g爜
<script type="text/javascript"> function ajaxFileUpload(imgName) { $("#loading") .ajaxStart(function(){ $(this).show(); }) .ajaxComplete(function(){ $(this).hide(); }); $.ajaxFileUpload ( { url:'/productmgr/control/uploadProductImg', secureuri:false, fileElementId: imgName+'File', dataType: 'text', success: function (data, status) { data = removeDivTag(data); if(data=="ImgEmptyErr"){ alert("璇烽夋嫨涓婁紶鍥劇墖錛?); return; } if(data=="sysErr"){ alert("涓婁紶澶辮觸錛岃閲嶈瘯錛?); return; } $("#"+imgName)[0].value = data; $("#"+imgName+"Div")[0].innerHTML = "涓婁紶鎴愬姛錛? //alert($("#"+imgName)[0].value); }, error: function (data, status, e) { alert("娣誨姞浜у搧鍥劇墖鏃跺彂鐢熷涓嬮敊璇細"+e); } } ) return false; } </script> 鏈漢鏈嶅姟鍣ㄧ浣跨敤鐨勬槸beanshell鑴氭湰錛屼唬鐮佸涓嬶細 Java浠g爜
/* * 浜у搧鍥劇墖涓婁紶 * * author : Emerson * * Yiihee , Inc. */ import org.ofbiz.base.util.*; import org.ofbiz.base.util.string.*; import org.ofbiz.entity.*; import java.text.SimpleDateFormat; import java.util.*; import java.io.*; import org.apache.commons.fileupload.disk.*; import org.apache.commons.fileupload.servlet.*; import org.apache.commons.fileupload.*; configProperties = UtilProperties.getProperties("opencommon.properties"); String imageUploadServerPath = configProperties.get("openb2c.image.upload.server.path"); //SimpleDateFormat sf = new SimpleDateFormat("yyyyMMddHHmmss"); //Date date = new Date(); //String filename = sf.format(date); String fileName; File uploadPath = new File(imageUploadServerPath);//涓婁紶鏂囦歡鐩綍 if (!uploadPath.exists()) { uploadPath.mkdirs(); } // 涓存椂鏂囦歡鐩綍 File tempPathFile = new File(imageUploadServerPath+"\\temp\\"); if (!tempPathFile.exists()) { tempPathFile.mkdirs(); } try { // Create a factory for disk-based file items DiskFileItemFactory factory = new DiskFileItemFactory(); // Set factory constraints factory.setSizeThreshold(4096); // 璁劇疆緙撳啿鍖哄ぇ灝忥紝榪欓噷鏄?kb factory.setRepository(tempPathFile);//璁劇疆緙撳啿鍖虹洰褰?nbsp; // Create a new file upload handler ServletFileUpload upload = new ServletFileUpload(factory); // Set overall request size constraint upload.setSizeMax(4194304); // 璁劇疆鏈澶ф枃浠跺昂瀵革紝榪欓噷鏄?MB List items = null; items = upload.parseRequest(request);//寰楀埌鎵鏈夌殑鏂囦歡 if(items==null||items.size()==0){ String msg = "ImgEmptyErr"; context.put("result", msg); return; } Iterator i = items.iterator(); //姝ゅ瀹為檯鍙湁涓涓枃浠?nbsp; while (i.hasNext()) { FileItem fi = (FileItem) i.next(); fileName = fi.getName(); if (!UtilValidate.isEmpty(fileName)) { File fullFile = new File(fi.getName()); //File fullFile = new File(filename); File savedFile = new File(uploadPath, fullFile.getName()); int j = 0; while(savedFile.exists()){ j++; savedFile = new File(uploadPath, savedFile.getName().substring(0,savedFile.getName().lastIndexOf(".")-1)+"("+j+")"+savedFile.getName().substring(savedFile.getName().lastIndexOf("."),savedFile.getName().length())); } fi.write(savedFile); fileName = savedFile.getName(); }else{ String msg = "ImgEmptyErr"; context.put("result", msg); return; } } context.put("result", fileName); } catch (Exception e) { Debug.log("涓婁紶浜у搧鍥劇墖鍙戠敓閿欒:"+e); String msg = "sysErr"; context.put("result", msg); return; } 鐒跺悗灝唕esult緇撴灉娓叉煋鍒癴reemarker妯℃澘錛屽茍緇忓洖璋冨嚱鏁拌В鏋愬悗灞曠ず緇欑敤鎴楓? 鎬葷粨錛欽Query寮哄ぇ寮傚父錛屾湰鏂囦粎浠庤嚜韜嬌鐢ㄨ搴﹀垪涓句簡鍏墮儴鍒嗙敤娉曪紝鏈浘娣辯┒鏈鏂版渶浼樻渶綆鐢ㄦ硶錛屾殏浠ユ鏂囦綔涓虹粡楠屾葷粨錛屼互寰呮棩鍚庡弬鑰冧慨姝c備唬鐮佺墖孌靛北瀵ㄤ箣澶勫疄灞炴湰浜烘妧鎷欙紝鑰岄潪JQuery涔嬭繃銆?nbsp; ]]> jquery 涓婁笅縐誨姩琛ㄦ牸鍏冪礌錛屽茍淇濇寔欏哄簭涓嶅彉 http://www.tkk7.com/hellxoul/archive/2012/03/22/372444.htmlhellxoul hellxoul Thu, 22 Mar 2012 04:02:00 GMT http://www.tkk7.com/hellxoul/archive/2012/03/22/372444.html http://www.tkk7.com/hellxoul/comments/372444.html http://www.tkk7.com/hellxoul/archive/2012/03/22/372444.html#Feedback 0 http://www.tkk7.com/hellxoul/comments/commentRss/372444.html http://www.tkk7.com/hellxoul/services/trackbacks/372444.html <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js"></script> <title>琛ㄦ牸</title> <style type="text/css"> .editText { border-width:1px; border-top-style:none; border-left-style:none; border-right-style:none; border-bottom-style:solid; border-color:#030; width:100%; } </style> <script src="jquery-1.3.2.js" type="text/javascript"> </script> <script type="text/javascript"> function moveUp(obj) { var current=$(obj).parent().parent(); var prev=current.prev(); if(prev) { current.insertBefore(prev); } } function moveDown(obj) { var current=$(obj).parent().parent(); var next=current.next(); if(next) { current.insertAfter(next); } } </script> </head> <body> <table class="grid" width="100%" border="1" cellspacing="0" cellpadding="0"> <tr> <td>瀛楁鑻辨枃鍚?lt;/td> <td>瀛楁涓枃鍚?lt;/td> <td>瀛楁鏁版嵁綾誨瀷</td> <td>鍒楀</td> <td>鏄惁鏄劇ず</td> <td>鏄惁浣滀負鏌ヨ鏉′歡</td> <td>璋冩暣欏哄簭</td> </tr> <tr> <td>1</td> <td><input type="text" name="textfield" class="editText" id="textfield"></td> <td> </td> <td><input type="text" name="textfield5" id="textfield5"></td> <td><input type="checkbox" name="checkbox" id="checkbox"></td> <td><input type="checkbox" name="checkbox5" id="checkbox5"></td> <td><a href="javascript:void(0)" onClick="moveUp(this)">涓婄Щ</a><a href="javascript:void(0)" onClick="moveDown(this)">涓嬬Щ</a></td> </tr> <tr> <td>2</td> <td><input type="text" name="textfield2" id="textfield2"></td> <td> </td> <td><input type="text" name="textfield6" id="textfield6"></td> <td><input type="checkbox" name="checkbox2" id="checkbox2"></td> <td><input type="checkbox" name="checkbox6" id="checkbox6"></td> <td><a href="javascript:void(0)" onClick="moveUp(this)">涓婄Щ</a><a href="javascript:void(0)" onClick="moveDown(this)">涓嬬Щ</a></td> </tr> <tr> <td>3</td> <td><input type="text" name="textfield3" id="textfield3"></td> <td> </td> <td><input type="text" name="textfield7" id="textfield7"></td> <td><input type="checkbox" name="checkbox3" id="checkbox3"></td> <td><input type="checkbox" name="checkbox7" id="checkbox7"></td> <td><a href="javascript:void(0)" onClick="moveUp(this)">涓婄Щ</a><a href="javascript:void(0)" onClick="moveDown(this)">涓嬬Щ</a></td> </tr> <tr> <td>4</td> <td><input type="text" name="textfield4" id="textfield4"></td> <td> </td> <td><input type="text" name="textfield8" id="textfield8"></td> <td><input type="checkbox" name="checkbox4" id="checkbox4"></td> <td><input type="checkbox" name="checkbox8" id="checkbox8"></td> <td><a href="javascript:void(0)" onClick="moveUp(this)">涓婄Щ</a><a href="javascript:void(0)" onClick="moveDown(this)">涓嬬Щ</a></td> </tr> </table> </body> </html> ]]> jquery鍒ゆ柇瀵硅薄鏄惁瀛樺湪 http://www.tkk7.com/hellxoul/archive/2012/03/22/372443.htmlhellxoul hellxoul Thu, 22 Mar 2012 04:01:00 GMT http://www.tkk7.com/hellxoul/archive/2012/03/22/372443.html http://www.tkk7.com/hellxoul/comments/372443.html http://www.tkk7.com/hellxoul/archive/2012/03/22/372443.html#Feedback 1 http://www.tkk7.com/hellxoul/comments/commentRss/372443.html http://www.tkk7.com/hellxoul/services/trackbacks/372443.html if($ ("#id")){ }else{}
jquery涓嶇瀵硅薄瀛樹笉瀛樺湪閮戒細榪斿洖object銆?/p>
搴旇鐢?
if($ ("#id").length>0){}else{}
or
if($ ("#id")[0]){ } else { }
or
if(document.getElementById("id")){} else {}
]]>
主站蜘蛛池模板:
四虎永久精品免费观看 |
亚洲人成在线免费观看 |
国产一级淫片a免费播放口之 |
wwwxxx亚洲 |
西西大胆无码视频免费 |
亚洲综合中文字幕无线码 |
无码少妇一区二区浪潮免费 |
ass亚洲**毛茸茸pics |
性盈盈影院免费视频观看在线一区 |
亚洲精品第一综合99久久 |
最近2019中文字幕mv免费看
|
国产成人一区二区三区免费视频 |
亚洲色偷偷综合亚洲AV伊人蜜桃
|
国产aⅴ无码专区亚洲av |
a毛片免费全部在线播放** |
亚洲AV无码久久精品成人 |
精品一区二区三区免费毛片爱 |
久久亚洲精精品中文字幕 |
可以免费看黄视频的网站 |
亚洲αⅴ无码乱码在线观看性色 |
啊v在线免费观看 |
视频免费在线观看 |
亚洲喷奶水中文字幕电影 |
日韩a在线观看免费观看 |
aaa毛片免费观看 |
亚洲激情电影在线 |
日韩视频在线免费 |
99久久免费国产精精品 |
亚洲午夜国产精品无卡 |
免费va人成视频网站全 |
久久大香香蕉国产免费网站 |
亚洲男人的天堂网站 |
亚洲中文字幕不卡无码 |
A在线观看免费网站大全 |
黄网站在线播放视频免费观看 |
亚洲国产精品无码av |
成在人线AV无码免费 |
在线看片免费人成视频久网下载 |
亚洲综合久久一本伊伊区 |
久久久久噜噜噜亚洲熟女综合
|
日本片免费观看一区二区 |