fastadmin展示多个视频按钮

 

                        {
                            field: 'videoimage',
                            title: __('Videoimage'),
                            events: Table.api.events.image,
                            // formatter: Table.api.formatter.image,
                            formatter: function (row) {
                                //console.log(row)
                                if (!row) {
                                    return '-';
                                } else {
                                    var str = row.split(",");
                                    var html = '';
                                    for (var i = str.length - 1; i >= 0; i--) {
                                        html += "<a href='" + str[i] + "'target='_blank' class='fa fa-video-camera'>&nbsp;";
                                    }
                                    html += '';
                                    return html;
                                }
                            }
                        }

 

posted @ 2021-07-18 10:21  一颗糊涂淡  阅读(546)  评论(0编辑  收藏  举报