📅  最后修改于: 2022-03-11 15:03:55.450000             🧑  作者: Mango
$('#modal-sensory').on('show.bs.modal', function (event) {
// Button that triggered the modal
var button = $(event.relatedTarget)
// the modal
var modal = $(this);
//show tab
modal.find('[href="'+button.attr("href")+'"]').tab('show');
});