随笔分类 -  前端JS或AJAX疑难汇总

摘要:后台 public static String replaceBlank(String str) { String dest = ""; if (str!=null) { Pattern p = Pattern.compile("\\s*|\t|\r|\n"); Matcher m = p.matc 阅读全文
posted @ 2019-06-27 10:34 小农_码 阅读(840) 评论(0) 推荐(0)
摘要:因为页面展示 项目类型是从数据字典中获取的而保存的数据是在另一张表保存的如果在html页面进行jstl双重循环实现不了对checkbox的判断是否选中问题 比如循环数据字典过程中假如有7条从 列表中查询出修改的对象中应该选中的数据是省重点建设项目,国际招标项目 如果通过以下方式进行双重循环是实现不了 阅读全文
posted @ 2019-06-27 10:25 小农_码 阅读(591) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-06-03 16:48 小农_码 阅读(484) 评论(0) 推荐(0)
摘要:递归sql select t3.* from (select t1.*, if(find_in_set(pid, @pids) > 0, @pids := concat(@pids, ',', id), if (t1.id = @pids,@pids,0)) as ischild from ( se 阅读全文
posted @ 2019-06-02 14:42 小农_码 阅读(856) 评论(0) 推荐(0)
摘要:<style>#bom { position:fixed; left:0px; width:50px; height:20px; font-size:10px; font-family:Arial, Helvetica, sans-serif; text-align:center; border:s 阅读全文
posted @ 2019-05-17 18:24 小农_码 阅读(487) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2019-05-16 16:34 小农_码 阅读(385) 评论(0) 推荐(0)
摘要:1 List<Object> list = new ArrayList<>(); 2 Map<String,Object> m1=new HashMap<>(); 3 m1.put("a", 1); 4 Map<String,Object> m2=new HashMap<>(); 5 m1.put( 阅读全文
posted @ 2019-05-16 16:25 小农_码 阅读(306) 评论(0) 推荐(0)
摘要:/*************************初始化添加*************************************/ <script type="text/javascript"> //维护删除数组中的某一项 Array.prototype.remove = function( 阅读全文
posted @ 2019-05-16 08:48 小农_码 阅读(540) 评论(0) 推荐(0)
摘要:三级联动实列 js http://www.jq22.com/jquery-info13981 下载 第二个插件js 修改 阅读全文
posted @ 2019-05-14 16:38 小农_码 阅读(211) 评论(0) 推荐(0)
摘要:jQuery.fn.center = function () { this.css('position','absolute'); this.css('top', ( $(window).height() - this.height() ) / +$(window).scrollTop() + 'px'); this.css('left', ( $(window).width() -... 阅读全文
posted @ 2019-05-06 14:57 小农_码 阅读(207) 评论(0) 推荐(0)
摘要:/*绑定多个事件 $(function(){ $("div").delegate("#a,#b",{"click":function(){ alert(1) } ,"mouseover":function(){ $(this).before(1) } })}) $(function(){ $("di 阅读全文
posted @ 2019-05-05 10:00 小农_码 阅读(584) 评论(0) 推荐(0)
摘要://输入的时候如果输入小数2.220立即变成2.22保留两位js工具类 function clearNoNum(obj){ obj.value = obj.value.replace(/[^\d.]/g,""); obj.value = obj.value.replace(/\.{2,}/g,"." 阅读全文
posted @ 2019-04-30 10:02 小农_码 阅读(1215) 评论(0) 推荐(0)
摘要:<script type="text/javascript"> //维护删除数组中的某一项 Array.prototype.remove = function(val) { var index = this.indexOf(val); if (index > -1) { this.splice(in 阅读全文
posted @ 2019-04-30 09:49 小农_码 阅读(1832) 评论(0) 推荐(0)