我有这样的数据源
var source = [
{
group: "g-one",
item: "one"
},
{
group: "g-one",
item: "two"
},
{
group: "g-one",
item: "three"
},
{
group: "g-two",
item: "aaa"
},
{
group: "g-two",
item: "bbb"
}
];
从这里我需要创建一个这样的结构
<div id='g-one'>
<div>one</div>
<div>two</div>
<div>three</div>
</div>
<div id='g-two'>
<div>aaa</div>
<div>bbb</div>
</div>
请帮我解决这个问题