at present, I have such a list. Because Mini Program has to parse HTML in order to display content normally, he uses the plug-in of wxParse. The place where I draw the red box is also from the editor in the background. Now the cycle is coming out. But somehow he only showed the last piece of data.
this is the description of the parsed HTML loop
for (let i = 0; i < news.length; iPP) {
WxParse.wxParse("replyTemArray", "html", news[i].abstract, that);
console.log(news[i].abstract);
}
this is a loop of the data list
<view class="list" wx:for="{{news}}">
<view class="box">
<navigator class="title">{{item.title}}</navigator>
<import src="../../wxParse/wxParse.wxml"/>
<view class="ms">
<block wx:for="{{replyTemArray}}" wx:key="">
<template is="wxParse" data="{{wxParseData:item}}"/>
</block>
</view>
<view class="bottom">
<view class="data"><view class="iconfont icon-riqi"></view>2018-01-01</view>
<view class="tag"><view class="iconfont icon-biaoqian"></view>JS</view>
<navigator class="read">+</navigator>
<view class="clear"></view>
</view>
</view>
</view>
because Mini Program can"t concatenate HTML, as we usually write, so I don"t know how to cycle this list. No, no, no.
I guess it"s just the wrong cycle. However, there was no deep contact with Mini Program and no good solution was found. no, no, no. If you have trouble to know, tell me how to deal with it, thank you ~