Bootstrap 4模式不起作用/在BeginCollectionItem

时间:2018-10-08 03:16:27

标签: asp.net-mvc razor bootstrap-4 bootstrap-modal

我在BegiCollectionItem函数中的模态不起作用/没有显示,如何解决此问题?

这是我的代码:

//其他tds在这里

 @model SimplyAccounting.Models.TransactionViewModels.JournalDetailsViewModel
@using (Html.BeginCollectionItem("JournalDetailsViewModel"))
{
        <td>
            <a class="btn btn-sm" role="button" href="#" data-toggle="modal" data-target="#@Model.Guid">Others</a>
            <div class="modal fade" id="@Model.Guid" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        //content here
                        </div>
                    </div>
                </div>
            </div>
        </td>
        <td><button type="button" class="btn btn-sm btn-danger" id="delete" name="delete" value="delete" onclick="javascript: deleteBook(document.getElementById('@Model.Guid'))"><i class="far fa-trash-alt"></i></button></td>
    </tr>
}

enter image description here

0 个答案:

没有答案