JS如何把数组变成对象,并且里边的元素也变成对象?var arr=["0:{text:YF}", "1:{text:AG}", "2:{text:RCG}"]var obj={}arr.forEach(function(e){2023-04-12JavaScript370