- 博客(4)
- 收藏
- 关注
原创 JAVA 小数取整
最近用到了小数取整的问题,Math提供了小数取整的方法,记下来,方便以后使用Math.ceil(double)//向上取整Math.floor(double)//向下取整(0.1 结果为0.0)
2013-05-09 14:17:50 725
原创 JS 数组排序最大值
var a= new Array(1, 2, 3, 4, 5); alert(Math.max.apply(null, a));//最大值 alert(Math.min.apply(null, a));//最小值
2013-05-08 14:13:00 465
原创 LIST 去除并合并重复记录
List oldList=new ArrayList();//有数据的对象 List newList=new ArrayList();//合并后的新对象 for (int j = 0; j < oldList.size(); j++) { Object o = oldList.get(j); boolean isExist = false; for (O
2013-05-08 09:32:15 548
转载 判断浏览器类型JS(网上找到的)
New Document var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] :
2013-04-24 14:29:17 273
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人