摘要:
经典案例分析:public class RoundTest { public static void main(String[] args) { System.err.println("12.5的四舍五入值:"+Math.round(12.5)); System.err.println("-12.5 阅读全文
摘要:
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 阅读全文