layui自定义列表文件超链接

<script type="text/html" id="operator_bar_files">
    {{# layui.each(d.files, function(index, item){     }}
    {{# if(index<=1){ }}
    <a href="{{window.filePath}}{{ item.fileId}}" target="_blank">
        <span class="layui-badge webStyle">{{ item.fileName}}</span>
    </a>
    {{# } }}
    {{# });  }}
</script>

 

 

 

posted on 2022-12-28 15:06  IT-QI  阅读(185)  评论(0编辑  收藏  举报