jQuery消息盒子NZMsgBox
Version vom
Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/449562/1081718/NZMsgBox.js
//不带图标
$.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: "他自己,自从到城里来,......"
});