Custom Templates -> name must be set
<template name="msgItem"> <view> <text>{{title}}</text> </view> <image src="{{url}}"></image> </template>
References;
Direct the data to the template, out of the structure; can be used directly in a template {{url}}, instead of using {{item.url}}
// wxml referenced <Import the src = " /pages/muban/listmuban.wxml " /> <View WX: for = " {{data}} " > // by data transmission parameters, what data is passed in, the template What is shown in; <Template IS = " msgItem " Data = " {{...}} Item " /> </ View> // wxss referenced @import ' /pages/muban/listmuban.wxss ' ;
Note that the name must be the same
Like my little partner can focus on micro-channel public number "front-end pseudo-uncle."