Play FrameWork项目中scala页面遍历list并操作index下标

来源:互联网 发布:淘宝无法举证 编辑:程序博客网 时间:2024/06/05 08:07

直接看代码吧:


 @for((product,index) <- prolist.zipWithIndex){            @if((index+1)%4 == 0){                <div class="queen-good-container" style="margin-right:0px;">            }else{                <div class="queen-good-container" >            }         }


0 0
原创粉丝点击