摘要: 经典案例分析:public class RoundTest { public static void main(String[] args) { System.err.println("12.5的四舍五入值:"+Math.round(12.5)); System.err.println("-12.5 阅读全文
posted @ 2016-08-12 23:01 thinkLee 阅读(268) 评论(0) 推荐(0) 编辑
摘要: var arr = [1,2,4,5,6];//1.forEach(让数组中的每一项做一件事)arr.forEach(function(item,index){ console.log(item); //1,2,4,5,6});//2、map(让数组通过某种计算产生一个新数组)var newArr 阅读全文
posted @ 2016-08-12 22:56 thinkLee 阅读(3251) 评论(0) 推荐(0) 编辑