<script> var str = "剧情,犯罪,月黑风高" var arr = str.split(",") console.log(arr) var res = [] arr.forEach(name=>{ console.log(name) res.push({ name }) }) console.log(res)