usage
1. Through the data attribute: set the attribute data-toggle="modal" on the controller element (such as a button or link), and set data-target="#identifier" to specify the specific modal box to be switched (with id="identifier").
2. Via JavaScript: Using this technique, a modal box with id="identifier" can be called via JavaScript:
$('identifier').modal(options);
$('identifier').modal('show');//打开模态框
$('identifier').modal('hide');//关闭模态框
Reference: Bootstrap Modal Box | Newbie Tutorial