摘要: 最近项目中遇到了,处理数组数据问题: var newStrs=[1,2,3,4]; alert(Math.min.apply(null,newStrs)); //最小值 alert(Math.max.apply(null,newStrs)); //最大值 阅读全文
posted @ 2014-11-21 14:12 justin_xiaoshuai 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 后台字符串分割处理: String s = "i20002/400|i3030/300"; String[] s1 = s.split("\\||/"); for (int i = 0; i < s1.length; i++) { System.out.println(s1[... 阅读全文
posted @ 2014-11-21 11:12 justin_xiaoshuai 阅读(2670) 评论(0) 推荐(0) 编辑