一.基础知识 1.Android 进程优先级 1.1 进程优先级等级一般分法:- Activte process- Visible Process- Service process- Background process- Empty process 1.2 进程优先级号 ProcessList.java // Adjustment used in certain places where we don't know it yet. // (Generally this is something…
七.ECMAScript5关于数组的新方法 1.forEach():遍历数组,并为每个元素调用传入的函数; 举例: var a = [1,2,3]; var sum = 0; //传一个参数 a.forEach(function(v){ sum += v; }); console.log(sum);//6 //传三个参数(元素值,索引,数组本身) a.forEach(function(v,i,a){ a[i]=v+1;//为数组的各元素自加1 }) console.log(a);/…