这是我的循环代码:
<div th:each="photo : ${photos}" class="col-md-6 col-lg-4">
<div class="portfolio-item mx-auto" data-toggle="modal"
data-target="#portfolioModal{{$photo.id}}">
在这里,我想回想循环的每个元素的数据目标
<div class="portfolio-modal modal fade" id="portfolioModal{{$photo.id}}"
tabindex="-1" role="dialog"
aria-labelledby="portfolioModal1Label" aria-hidden="true">