Greasy Fork is available in English.

NZMsgBox

jQuery消息盒子NZMsgBox

目前为 2022-08-15 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.org/scripts/449562/1081718/NZMsgBox.js

作者
WhiteSevs
版本
0.0.1.20220815133029
创建于
2022-08-15
更新于
2022-08-15
许可证
暂无

NZMsgBox的解混淆并且合并了两个涉及的js,包括css内容

NZMsgBox简介

涉及的js和css资源

部分调用方式

//不带图标
$.NZ_MsgBox.alert({ 
    title: "yes!成功!"
    , content: "耶耶耶!成功!well done!"
    , type: ""
    , buttons: { 
        confirm: { text: "好的" } 
    } 
});
//不带图标
$.NZ_MsgBox.alert({ 
    title: ""
    , content: "耶耶耶!成功!well done!"
    , type: ""
    , buttons: { 
        confirm: {text: "好的"} 
    } 
});
//成功
$.NZ_MsgBox.alert({ 
    title: "yes!成功!"
    , content: "耶耶耶!成功!well done!"
    , type: "success"
});
//警告
$.NZ_MsgBox.alert({
    title: "Warning!警告!"
    , content: "Warning!警告!well done!"
    , type: "warning"
});
//错误
$.NZ_MsgBox.alert({ 
    title: "Error!错误!"
    , content: "Error!错误!"
    , type: "error"
});
//超长内容
$.NZ_MsgBox.alert({
    title: "yes!成功!"
    , content: "他自己,自从到城里来,......"
});