let site = ['runoob', 'google', 'taobao','google']
//数组转字符串
document.write(typeof(newSite)); //string
//字符串转数组
let other = newSite.split("&") ;
//检查数据类型
document.write(other instanceof Array); //true
//数组转字符串
let newSite = site.join('&') ;
//或者
let newSite = site.toString() ;
document.write(typeof(newSite)); //string
//字符串转数组
let other = newSite.split("&") ;
//检查数据类型
document.write(other instanceof Array); //true