我現(xiàn)在有這樣兩組數(shù)據(jù)var a = [ { "dicId" : 112
}, { "dicId" : 113
} , { "dicId" : 114,
}];var b = [ { "name" : "語文"}, { "name" : "數(shù)學(xué)"} , { "name" : "英語"}];我現(xiàn)在想生成這樣的dom結(jié)構(gòu)<ul>
<li>
<p>112</p>
<span>語文</span>
</li>
<li>
<p>113</p>
<span>數(shù)學(xué)</span>
</li>
<li>
<p>114</p>
<span>英語</span>
</li></ul>應(yīng)該如何用angular去實(shí)現(xiàn)?
ng-repeat如何把兩組數(shù)據(jù)循環(huán)放入一組結(jié)構(gòu)中?
POPMUISE
2018-08-15 15:10:14