当前位置:网站首页>后台弹出layer提示
后台弹出layer提示
2022-07-28 15:22:00 【孙奋斗】
PHP后台弹出layer提示
layermobile 是layer手机端电脑端可用layer 的layer.msg 原理一样!
/** * @param $msg 弹出提示信息 * @param int $url 跳转地址 * @param float $time 延时跳转 秒 */
function layerExit($msg, $url=-1, $time=1.5) {
echo '<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <script src="/static/index/js/jquery.min.2.1.4.js"></script> <script src="/static/index/js/layermobile/layer.js"></script></head><body style="background-color: #fff;">';
if (!empty($msg)) {
echo "<script>layer.open({content: '$msg',skin: 'msg',time: $time });</script>";
}
$time *= 1000;
if (is_numeric($url)) {
echo "<script>setTimeout(function(){window.history.go($url)}, $time);</script>";
} else {
echo "<script>setTimeout(function(){window.location.href = '$url'}, $time);</script>";
}
die('</body></html>');
}
边栏推荐
- RF module wireless transceiver rf63u chip application data transmission and infrastructure network
- LwIP development | socket | TCP | client
- Roson的Qt之旅#102 ListModel
- About standard IO buffers
- mysql 查看事件状态语句和修改办法
- js 优先级队列
- I'll show you a little chat! Summary of single merchant function modules
- Mlx90640 infrared thermal imager temperature sensor module development notes (VIII)
- Baidu editor ueeditor, when editing too much content, the toolbar is not visible, which is not convenient for editing or uploading problems
- KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书
猜你喜欢

I'll show you a little chat! Summary of single merchant function modules

One channel encoder, two channels Di speed measurement, RS485 serial port connected to one channel do alarm module ibf151

LwIP development | realize TCP server through socket

js 双向链表 01

How to measure the vibrating wire sensor by vibrating wire acquisition module?

深入理解Istio流量管理的熔断配置

The little red book of accelerating investment, "rush to medical treatment"?

关于标准IO缓冲区的问题

Temperature measurement and imaging accuracy of ifd-x micro infrared imager (module)

Rust Getting Started Guide (crite Management)
随机推荐
Rosen's QT journey 102 listmodel
QT打包
Rosen's QT journey 101 models and views in QT quick
[Multisim Simulation] LM339 zero crossing circuit simulation
Paging query in applet
Instructions for mictr01 Tester development kit (vibrating wire acquisition reader)
mysql查询 limit 1000,10 和limit 10 速度一样快吗?如果我要分页,我该怎么办?
Use py to automatically generate weekly reports based on log records
软件问题修复跟踪系统实战开发教程(上篇)
Automatically pack compressed backup download and delete bat script commands
ffmpeg获取首帧
Notes on October 22, 2021
KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书
Remote serial port server (adapter) UART to 1-wire application
Numpy ndarray learning < I > Foundation
Writing of factorial
Connection and application of portable borehole inclinometer data acquisition instrument and inclinometer probe
laravel
High speed counter to rs485modbus RTU module ibf150
百度编辑器ueditor,编辑内容过多时,工具栏不可见,不方便编辑或上传问题