数组转换
任何对象都有toLocaleString(), toString(), valueOf()方法,实现在Object对象的原型对象上
var arr = [
"a",
"b",
"c"];
alert(arr);
alert(arr.toString());
alert(arr.toLocaleString());
console.log(arr.
join());
var arr1 = [
1, undefined,
2,
null,
3, NaN];
console.log(arr1.
join());