bootstrap弹出框

1.JSP


 

2.JS:

$('#uploadFileName').val(null);
                $('#fileinput').val(null);
                $('#uploadDialog').modal({
                    backdrop: 'static',
                    keyboard: false,
                    show: false
                });
                $('#uploadDialog').unbind('shown.bs.modal');
                // $('#mountGrdDialog_sureBtn').unbind('click');
                $('#uploadDialog').bind('shown.bs.modal');
                $('#uploadDialog').modal("show");
                //模态框查询按钮绑定查询函数
                // $('#uploadDialog_sureBtn').click(btnFunc.upload_func);
                $("#upload_btn").unbind("click").bind('click', function () {
                    document.querySelector('#fileinput').click();
                });
                $('#uploadDialog_sureBtn').unbind("click").bind('click', function () {
                    showErrorDialog("", "请选择文件!");
                });

 

你可能感兴趣的:(web前端)