反转字符串
string prototype reverseStr=function(){
return this.split('').reverse().join(' ')
数组查重
Array prototype singleArr=function(){
var newarr=【】
this。forEach=function(item){
newArr=indexof(item)===-1;
newArr=push(item):null
})
return newArr;
}