最佳答案
您可以在脚本开头执行以下操作:
// You can retrieve the id in 'matches' variable if needed
if (matches = window.location.href.match(/#delete-([0-9])+/))
{
$('#my-modal').modal('show');
}
关于javascript - 基于 URL 中的 HASH 打开 Bootstrap 模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36917775/