1.数组转字符串 str.join(',') 2.字符串转数组 arr.split(',') 3.数组排序 function sorb(a,b){return a-b;}; arr.sort(sorb); 4.数组去重 var arr=[1,2,43,45,5,6,7,87,89,90,0,1,2,32,4,5,7],arr1=[]; for(i in arr){ if(arr1.indexOf (arr[i])<0){arr1.push(arr[i])} } 5.js变量提升 函数及变量的声明…