摘要:
1、在sql语句中,字符串数字类型进行比较的时候 字符串的比较原理首先要搞清楚,先比较第一个字母的ascii,如果相同,再比较第二个字母的ascii。很明显9与10,第二个字母9 的ascii是39H,而1的ascii是31H,那么自然是9大 我们可以在比较的字段后面+0,就可以进行正确比较 2、关 阅读全文
摘要:
dom对象、js对象和jquery对象的区别: 相关链接:https://www.cnblogs.com/Ellen-study/p/7242245.html 阅读全文
摘要:
参考链接:https://my.oschina.net/sub/blog/123447?fromerr=s5Bgun3z https://www.phpsong.com/2347.html 阅读全文
摘要:
表机构,统计name的数量 sql语句 mysql.help_topic id自增的临时表 select (substring_index(substring_index(a.name,';',b.help_topic_id+1),';',-1)) 'name',COUNT('abc') 'coun 阅读全文
摘要:
方法一:对象实体实现Comparable接口,重写Compareto方法,使用Collections.sort()方法进行排序 方法二:使用Comparator匿名内部类实现 Collections.sort(list, new Comparator (BeanClass){ }) 阅读全文
摘要:
页面样式: 点击查询帮助,弹出如图提示框,点击其他地方取消。 <a tabindex="0" class="white" role="button" data-toggle="popover" data-trigger="focus" data-placement="top" data-conten 阅读全文
摘要:
在页面中添加css样式: <style>/* 隐藏地图bmap左下角logo */ .anchorBL{ display:none; } </style> 阅读全文
摘要:
解决方法: 1、js中,使用encodeURIComponent解决 2、使用post提交 阅读全文
摘要:
在开发过程中,获取到一个10位的long类型的时间,在转换时发现得到的时间不正确。 Date date = new Date(currentTime); // long类型转成Date类型 String strTime = new SimpleDateFormat(formatType).forma 阅读全文
摘要:
一、使用remote属性验证唯一性,与后台数据进行交互时 1、 直接使用url(默认传递 userPhone的值) 2、 可以进行配置(传递多个参数,参与验证) 3、 后台代码(默认返回的是 “true”和“false”) 二、改变错误信息输出位置 不错的博客:https://www.cnblogs 阅读全文