模態框為資訊編輯視窗,涉及好多內容,填了半天,若一不小心點了空白處.....
<span style="font-size: 14px">$('#myModal').modal({backdrop: 'static', keyboard: <span style="color: #0000ff">false</span></span><span style="color: #000000"><span style="font-size: 14px">});</span><br></span>
<span style="font-size: 16px">backdrop:static //空白处不关闭. keyboard:false //esc键盘不关闭.</span>
上述程式碼用以開啟模態框