服务器上的IE 11中未显示警报窗口

时间:2018-09-03 14:39:12

标签: javascript jquery

IE11中未显示“警告”窗口。它在本地机器上工作良好。但部署到服务器后无法正常工作(请查找附件图像。)

var alertType =
    {
        "Warning": "orange",
        "Error": "red",
        "Success": "green"
    };


function CustomAlert(messsage, alertType, title, boxWidth, btnText, onBtn1Success) {

    $.alert({
        boxWidth: typeof (boxWidth) !== "undefined" ? boxWidth : '20%',
        useBootstrap: false,
        title: typeof (title) !== "undefined" ? title : 'Alert',
        content: "<div style=font-size:14px;>" + messsage + "</div>",
        type: typeof (alertType) !== "undefined" ? alertType : '',
        draggable: true,        
        buttons: [
            {
                text: typeof (btnText) !== "undefined" ? btnText : 'Ok',
                action: onBtn1Success
            }]


    });
}

CustomAlert("An error has occured in IBU. Please try again.", alertType.Warning);

0 个答案:

没有答案