数组与字符串的相互转化
var obj="new1abcdefg".replace(/(.)(?=[^$])/g,"$1,").split(","); //字符串转化为数组
var obj2 = "new2abcdefg".split(""); //字符串转化为数组
alert(obj);
alert(obj.length);
alert(obj instanceof Array);
alert(obj.join("")); //数组转化为字符串