var arr = []; for(var i = 0;i < 10;i++){ arr.push(i); } console.log(arr.slice(5,8)); console.log(arr.map(function(val){ return val+"好棒" })) console.log(arr.splice(5,0,"好","好棒")) console.log(arr.concat(["很好","很不错"])); console.log(arr);