03 2013 档案
摘要:从页面跳转: encodeURI(encodeURI(url)); 获取值后<%=URLDecoder.decode(request.getParameter("custName"),"UTF-8")%>从后台跳转: response.sendRedirect(url);需要对单个中文参数URLEncoder.encode(accountName,"utf-8") 如:Stringurl = "http://127.0.0.1:8080?a=1$accountName="+URLEncoder.enco
阅读全文
摘要:js判断undefined类型 if (reValue== undefined){ alert("undefined"); } 发现判断不出来,最后查了下资料要用typeof方法:if (typeof(reValue) == "undefined") { alert("undefined"); } typeof 返回的是字符串,有六种可能:"number"、"string"、"boolean"、"object"、"function"、&
阅读全文
摘要:https://github.com/douglascrockford/JSON-js/blob/master/json.jshttp://www.JSON.org/js.html var json = JSON.parse(str); //转对象 var str = JSON.stringify(json) //转字符串
阅读全文
摘要:1.JDK访问httpstry {URL url = new URL("https://www.mg.com/miugogate/gateway?service=unifiedLogin&mchntLoginUserName=miugobuyadmin&mchntLoginPwd=21218CCA77804D2BA1922C33E0151105&charset=utf-8&signType=MD5&sign=BE1938CA5FBBCD8BD2BEED0135B96420&token=20130304175557255110&c
阅读全文
摘要:HTML://登录function login(){ var URL = "http://127.0.0.1:8080/miugogate/GateWay";//RSA私钥设置setMaxDigits(130);var key = new RSAKeyPair("8b33d1d7027cb8f910d538d6cd1e0c7344b3fc3728c83f39fec7d4149a4332f740ba6867ce585addbd3c6e3df6cac316956fc316843cb62604495fdfbd11ab607b9696e04ca7e1afda894d39f
阅读全文
摘要:类型:TIMESTAMP(6)select to_char(systimestamp,'yyyy-mm-dd HH24:MI:ss.ff3') from dual;
阅读全文