- @foreach(var item in Html.AttachmentDataList(new { ParentTable = "pa_site", ParentField = "images", ParentId = Html.CurrentSiteId() }))
- {
- <div class="swiper-slide"><img src="@item.Path"></div>
- }
复制代码这段代码有几个地方没有看明白
1、pa_site表中没有images这个这字段,
2、Html.CurrentSiteId()获取的是什么值
其中Html.AttachmentDataList的用法是怎样的?