$("#模态框名字").modal({ show:true, backdrop:'static' }); 或者$('#模态框名字').modal({backdrop: 'static', keyboard: false});