jQuery点击按钮弹出提示层插件godlike2年前发布关注0591493 jQuery点击按钮弹出提示层插件,包括加载层和消息确认框5种效果。 js代码 <script type=\"text/javascript\">function showLoadingBUtton1(){showLoading({title: \"数据加载中。。。\", //提示文字icon: \'loading\', // 图标,有效值 \"success\", \"loading\", \"none\"image: \'\', // 自定义图标的本地路径,image 的优先级高于 iconduration: 50000, //提示的延迟时间,单位毫秒,默认:1500mask: true, // 是否显示透明蒙层,防止触摸穿透,默认:falsesuccess: function(res) { //接口调用成功的回调函数console.log(JSON.stringify(res))},});setTimeout(function() {hideLoading()}, 2000)}function showLoadingBUtton2(){showLoading({title: \"数据加载成功\", //提示文字icon: \'success\', // 图标,有效值 \"success\", \"loading\", \"none\"image: \'\', // 自定义图标的本地路径,image 的优先级高于 iconduration: 2000, //提示的延迟时间,单位毫秒,默认:1500mask: true, // 是否显示透明蒙层,防止触摸穿透,默认:falsesuccess: function(res) { //接口调用成功的回调函数console.log(JSON.stringify(res))},});}function showLoadingBUtton3(){showLoading({title: \"数据加载。。。\", //提示文字icon: \'none\', // 图标,有效值 \"success\", \"loading\", \"none\"image: \'\', // 自定义图标的本地路径,image 的优先级高于 iconduration: 2000, //提示的延迟时间,单位毫秒,默认:1500mask: true, // 是否显示透明蒙层,防止触摸穿透,默认:falsesuccess: function(res) { //接口调用成功的回调函数console.log(JSON.stringify(res))},});}function showModalButton1(){showModal({ title: \"温馨提示\", //提示的标题content: \"确认要删除吗?\", //提示的内容showCancel: false, //是否显示取消按钮,默认为 truecancelText: \'no\', //取消按钮的文字,默认为\"取消\",最多 4 个字符cancelColor: \"#fff\", //取消按钮的文字颜色,默认为\"#000000\"cancelBgColor: \'#4c4c4c\', //取消按钮的背景颜色 confirmText: \'yes\',confirmColor: \'#fff\',confirmBgColor: \'#55aaff\',success: function(res) {if (res.confirm) {console.log(\'yes\');} else {console.log(\'no\');}}});}function showModalButton2(){showModal({ title: \"温馨提示\", //提示的标题content: \"确认要删除吗?\", //提示的内容showCancel: true, //是否显示取消按钮,默认为 truecancelText: \'no\', //取消按钮的文字,默认为\"取消\",最多 4 个字符cancelColor: \"#fff\", //取消按钮的文字颜色,默认为\"#000000\"cancelBgColor: \'#4c4c4c\', //取消按钮的背景颜色 confirmText: \'yes\',confirmColor: \'#fff\',confirmBgColor: \'#55aaff\',success: function(res) {if (res.confirm) {console.log(\'yes\');} else {console.log(\'no\');}}});}</script> jQuery点击按钮弹出提示层插件此内容为付费资源,请付费后查看¥3¥20登录购买付费资源© 版权声明 区块之眼 - 尊重原创,保护知识产权 1、本网站名称:区块之眼 2、本站永久网址:https://blockeye.top/ 3、本站文章部分内容可能来源于网络,仅供学习参考,如有侵权请联系客服:services@blockeye.top 进行处理。 4、本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。 5、本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向客服举报。 6、本站资源大多存储在云盘,如发现链接失效,请联系我们,我们会第一时间更新。 THE END网页代码# jQuery特效 喜欢就支持一下吧点赞493 分享QQ空间微博QQ好友海报分享复制链接收藏