我想像这样转换一个数组:
[ 'John', 'Jane' ]
变成对象对数组,如下所示:
[{'name': 'John'}, {'name':'Jane'}]
请帮我这样做..
javascript arrays
arrays ×1
javascript ×1