java web
k0ko
本人从事web开发4余年时间,对一些基本的应用能够快速的给出设计方案,已经对应的架构框架,关注于技术领域
展开
-
java post 请求带map参数和map header
public static String httpPostWithJsonAndHeader(String url, Map<String, Object> paramMap, Map<String, String> headsMap) { String result = ""; HttpPost httpPost = new HttpPost(url); List<NameValuePair> nameValuePairList = new .原创 2020-10-27 20:51:50 · 4059 阅读 · 0 评论 -
antd datepicker 获取时间默认少8个小时的解决方法
1、扩展日期格式化方法Date.prototype.format = function (fmt) { let o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(),原创 2020-05-28 08:41:21 · 2862 阅读 · 0 评论 -
浏览器下载显示下载路径
response.addHeader("Content-Disposition", "attachment;filename="+ new String(filename.getBytes())); OutputStream os= new BufferedOutputStream(response.getOutputStream()); r转载 2014-08-20 16:13:16 · 817 阅读 · 0 评论 -
jQuery 表单序列号
(function($){ $.fn.serializeJson=function(){ var serializeObj={}; var array=this.serializeArray(); var str=this.serialize(); $(ar转载 2017-11-16 10:34:14 · 772 阅读 · 0 评论