<p id="app"></p>
<script>
var director = [
{name:"吴京",id:001},
{name:"章子怡",id:002},
{name:"徐峥",id:003},
]
var arr = [ ];
for(var i=0;i<director.length;i++){
console.log(director[i].name)
arr.push(director[i].name)
}
console.log(arr);
// 2.
var str = arr.join("/");
console.log(str)
// 3.
var app = document.getElementById("app");
app.innerHTML = str;
</script>