摘要: @ResponseBody @RequestMapping("/方法名") public AjaxMsg addUserHeadImg(HttpServletRequest request, @RequestParam("文件参数") String image,@RequestParam("其他参数 阅读全文
posted @ 2018-05-02 14:48 你若盛开 阅读(119) 评论(0) 推荐(0) 编辑
摘要: $(function() { resourceTree = $('#resourceTree').tree({//json格式 url : '', parentField : 'pid', //lines : true, checkbox : true, onClick : function(nod 阅读全文
posted @ 2018-04-11 11:32 你若盛开 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 例子: buttons : [ { text : '关闭', handler : function() { parent.$.modalDialog.handler.dialog('close'); } },{ text : '保存', handler : function() { parent.$ 阅读全文
posted @ 2018-04-09 08:19 你若盛开 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 1、使用的Microsoft Office 2007,添加一个无边框的表格,并插入一张图片,最后另存为编码utf-8,一开始保存的word xml格式的,图片的base64编码位于文档最后,暂时没有找到解决方法,所以就保存。 2、用编辑工具打开,找到base64编码替换为ftl标签,红色所示,图片设 阅读全文
posted @ 2017-08-02 17:44 你若盛开 阅读(206) 评论(0) 推荐(0) 编辑
摘要: jsp页面js代码: function downloadAttached(){ var id = []; id.push(infoid); var options = {}; options.action = "${pageContext.request.contextPath}/DocumentC 阅读全文
posted @ 2016-04-10 18:39 你若盛开 阅读(1357) 评论(0) 推荐(0) 编辑
摘要: html:hhhhahhb js:var aa = $('#bb input[name="cc"]:checked ').val(); 阅读全文
posted @ 2015-09-25 14:55 你若盛开 阅读(816) 评论(0) 推荐(0) 编辑
摘要: 在jsp页面请求中的变量为中文,本地就发生了乱码,而服务器上的系统就没有问题。解决方法:在server.xml中添加,因为tomcat默认请求编码是ISO8859的,因此需要加URIEncoding="utf-8"。 阅读全文
posted @ 2015-08-24 10:48 你若盛开 阅读(704) 评论(0) 推荐(0) 编辑