For Redux, you cannot use mutable methods like push, splice. Need to use immutable methods such as concat, slice and ...spread Html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JS Bin</title> &
No.21.使用apply方法通过不同数量的参数调用函数 Tips: 使用apply方法自定一个可计算的参数数组来调用可变参数的函数 使用apply方法的第一个参数给可变参数的方法提供一个接收者 //示例:计算给定数据的最大值 function getMaxNum(){ var max = arguments[0]; for(var i = 1, len = arguments.length;i < len; i++){ if(max < arguments[i]){ max = argume