php 简单提示框自定义函数_PHP教程
程序员文章站
2024-01-05 22:01:58
...
- /*php简单提示框自定义函数*/
- function alert ($msg,$url="")
- {
- $str =
- $str.="alert(".$msg.");";
- if ($url != "")
- {
- $str.="window.location.href={$url};";
- } else {
- $str.="window.history.back();";
- }
- echo $str.=;
- }
- ?>
下一篇: SQL With Ties 用法
推荐阅读
-
php curl_init 与 curl_setopt函数_PHP教程
-
PHP获取指定月份的第一天开始和最后一天结束的时间戳函数,php最后一天_PHP教程
-
mysql 时间转换函数的用法_PHP教程
-
尽可能使用PHP原生函数?,php函数_PHP教程
-
php使用swoole实现一个简单的多人在线聊天群发,swoole在线聊天_PHP教程
-
PHP实现简单线性回归之数学库的重要性_PHP教程
-
PHP引用操作以及外部操作函数的局部静态变量的方法_PHP教程
-
php实现用于删除整个目录的递归函数_PHP教程
-
PHP SQlite 函数库详解_PHP教程
-
php数组函数序列之array_unique() - 去除数组中重复的元素值_PHP教程