上一页 1 2 3 4 5 6 ··· 19 下一页
摘要: ``` import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.HashMap; import java.util.Iterator; import java. 阅读全文
posted @ 2019-12-07 15:34 ^sun^ 阅读(723) 评论(0) 推荐(1) 编辑
摘要: ``` public static void main(String[] args) { List strLs = new ArrayList(); strLs.add("香蕉"); strLs.add("苹果"); strLs.add("苹果"); strLs.add("橘子"); strLs.add("橘子"); strLs.add("橘子"); strLs.add("哈密瓜"); strLs 阅读全文
posted @ 2019-12-07 15:26 ^sun^ 阅读(816) 评论(0) 推荐(0) 编辑
摘要: ``` 重复值不添加 Array.prototype.push_unique = function () { for (var i = 0; i < arguments.length; i++) { var ele = arguments[i]; if (this.indexOf(ele) == -1) { this.push(ele); } } }; 删除指定值 Array.prototype. 阅读全文
posted @ 2019-11-19 13:33 ^sun^ 阅读(2057) 评论(0) 推荐(0) 编辑
摘要: ``` @ResponseBody @RequestMapping(value = "/downloadFile", method = RequestMethod.POST) public void downloadFile(HttpServletRequest request, HttpServletResponse response) throws Exception { String fil 阅读全文
posted @ 2019-11-14 16:52 ^sun^ 阅读(595) 评论(0) 推荐(0) 编辑
摘要: ``` $.each(arrayAllSjyd, function(indexAll, itemAll){ var chkFlg = "0"; $.each(arraySjydSel, function(indexSel, itemSel){ if(itemAll.split("/")[0] == itemSel.split(" ")[0]){ result_sjyd += '' + '' + i 阅读全文
posted @ 2019-11-13 13:50 ^sun^ 阅读(566) 评论(0) 推荐(0) 编辑
摘要: instr()函数的格式 (俗称:字符查找函数) 格式一:instr( string1, string2 ) / instr(源字符串, 目标字符串) 格式二:instr( string1, string2 [, start_position [, nth_appearance ] ] ) / in 阅读全文
posted @ 2019-11-07 15:57 ^sun^ 阅读(522) 评论(0) 推荐(0) 编辑
摘要: ``` //下载 $('#dasyszTable').on('click', '.download', function (e) { var nRow = $(this).parents('tr')[0]; var aData = dasyszTable.fnGetData(nRow); //插入日志 handleInsertRecord("进入法律、法规制度列表--附件下载"); var myf 阅读全文
posted @ 2019-11-06 16:29 ^sun^ 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 应用场景:使用bootstrap框架,在模态框中修改所属分类,分类层级较多,一般在2级以上. 出现问题:因已经在模态框中,bootstrap不允许同时弹出多个模态框. 一开始在网上找各种select组件希望得到多级分类解决办法,但基本上对多级选择的支持都只到2级,后来想了想也合理,一个select框 阅读全文
posted @ 2019-10-29 20:13 ^sun^ 阅读(2444) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-10-23 13:56 ^sun^ 阅读(705) 评论(0) 推荐(0) 编辑
摘要: ``` package cn.com; import org.apache.commons.codec.binary.Base64; import org.apache.commons.io.IOUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.common.base.Strings; 阅读全文
posted @ 2019-10-23 11:26 ^sun^ 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 19 下一页