按钮

<a data-toggle="modal" data-target=".detail" data-id="999" title="详细资料"><i class="ti-user"></i></a>

获取参数

$('.detail').on('show.bs.modal', function (e) {
        var btn = $(e.relatedTarget);
        var id = btn[0].dataset.id;
})