string:
a[c][][d]=1,a[c][][g]=2,a[b][]=2
expect:
{ a:{ c:{ 0:{ d:1 }, 1:{ g:2 } }, b:[ 2 ] } }
It's like PHP。
Using JS
How to do it?
https://stackoverflow.com/questions/67410628/javascript-how-to-convert-string-array-to-object May 06, 2021 at 09:08AM
没有评论:
发表评论