wxml-to-canvas 怎麼使用for循環啊??
const wxml = (row) => {
var desc = ''
for (var i in row) {
desc +=
` <view class="item-bottom">
<text class="bottom"> + ${row[i]} + </text>
</view>
</view> `
}
return ` <view class="container" >
<view class="item-top">
<text class="title">` + this.data.salarName + `</text>
</view>
<view class="item-mid" >
<text class="mid">` + this.data.parentName + ' ·' + `</text>
<text class="mid">` + this.data.degreeName + ' ·' + `</text>
<text class="mid-three">` + this.data.expirenceName + `</text>
</view>
<view class="item-title">
<text class="title-space">职位描述</text>
</view>
${desc}
`
}
解决了吗,同求