因此,如果我现在想出一个观点, 输出三篇文章及其标题和文体字段, 一个被清理的 html 结构版本将是:
<div class="item-1">
<div class="title">Item One Title</div>
<div class="body">Blah Blah Blah......</div>
</div>
<div class="item-2">
<div class="title">Item Two Title</div>
<div class="body">Blah Blah Blah......</div>
</div>
<div class="item-3">
<div class="title">Item Three Title</div>
<div class="body">Blah Blah Blah......</div>
</div>
任何人都知道我怎样才能通过“观点”或最佳选择, 使这个结构变成这样:
<div class="titles">
<div class="title1">Item One Title</div>
<div class="title2">Item Two Title</div>
<div class="title3">Item Three Title</div>
</div>
<div class="bodies">
<div class="body1">Blah Blah Blah......</div>
<div class="body2">Blah Blah Blah......</div>
<div class="body3">Blah Blah Blah......</div>
</div>