fastadmin展示多个视频按钮

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;
                                }
                            }
                        }

 

上一篇:fastadmin添加自定义按钮


下一篇:fastadmin中redis+token的实现方法