georgie / laravel-template
georgie 's laravel-template
dev-main
2021-12-02 07:18 UTC
This package is auto-updated.
Last update: 2024-09-29 05:50:06 UTC
README
jQuery弹出框工具
/**
* 弹出框
* {type: "alert", title: "title", buttonText: "buttonText", callback: "callback"}
* {type: "confirm", title: "title", okButtonText: "okButtonText", cancleButtonText: "cancleButtonText", okCallback: "okCallback", cancleCallback: "cancleCallback"}
*/
/*
type:类型,可为alert或者confirm
title: 提示框内容
type为alert时可选参数:
buttonText:按钮内容,可选,默认为确定
buttonColor:按钮字体颜色,可选,默认为orange
callback:点击俺就调用函数,可选
type为confirm时可选参数:
okButtonText: 确认按钮文字,默认确定,可选
cancleButtonText:取消按钮文字,默认取消,可选
okCallback:点击确认按钮触发事件,可选
cancleCallback: 点击取消按钮触发事件,可选
*/
$.showDialog({
title: "这只是一个测试", type: "confirm", okButtonText: "点我", buttonTitle: "", okCallback: function () {
alert("123");
}
});