1 var res = ""; 2 for(var p in object) 3 { 4 res += p + ","; 5 } 6 alert(res); 转载于:https://www.cnblogs.com/helloworld1314/p/4922105.html