I want to create something as following:
var collectoin=
[
'title1' => {'subtitle:'sub1', 'contents':'sub content 1' },
'title2' => {'subtitle:'sub2', 'contents':'sub content 2' },
'title3' => {'subtitle:'sub3', 'contents':'sub content 3' }
]
but I feel like it's not valid. I am not sure what's the best structure for my case.
thanks for the help
See Question&Answers more detail:os