.wxs返回的数据能否作为template的data中的数据进行传递

发布于 7 年前作者 yangfan4587 次浏览最后编辑 7 年前来自 ask

<view class=“house-card-tags”>

        <wxs src=“…/unitHouseTag/houseTags.wxs” module=“houseTags”/>

        <template is=“house-tags” data=“{{…houseTags}}”></template>

 </view>

houseTags的wxs文件返回一个对象,此对象能否作为模板house-tags的data传递到模板中?

0 回复
暂无回复