标签:
var a = [ "David", "Cynthia", "Raymond", "Clayton", "Mike", "Jennifer" ]; var a1 = a.join(); alert(a1); // David,Cynthia,Raymond,Clayton,Mike,Jennifer alert(typeof a1)//string a2 = a.toString(); alert(a2); // David,Cynthia,Raymond,Clayton,Mike,Jennifer alert(typeof a2);//string
标签:
原文地址:http://www.cnblogs.com/feile/p/5369692.html