<script>
//初始化
$(function () {
alterSuccess("成功");
//alterError("失败");
});
function alterSuccess(msg, speed) {
speed = speed || 3000
notifyMsg(msg, "success", speed);
}
function alterError(msg, speed) {
speed = speed||3000
notifyMsg(msg, "error", speed);
}
function notifyMsg(msg, msgType, speed) {
speed = speed || 3000
DevExpress.ui.notify({
message: msg,
width: 400,
position: {
at: "top center",
collision: "fit",
boundaryOffset: "0 20"
}
}, msgType, speed);
}
</script>