欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

php 简单提示框自定义函数_PHP教程

程序员文章站 2024-01-05 22:01:58
...
  1. /*php简单提示框自定义函数*/
  2. function alert ($msg,$url="")
  3. {
  4. $str =
  5. $str.="alert(".$msg.");";
  6. if ($url != "")
  7. {
  8. $str.="window.location.href={$url};";
  9. } else {
  10. $str.="window.history.back();";
  11. }
  12. echo $str.=;
  13. }
  14. ?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/486138.htmlTechArticle?php /*php简单提示框自定义函数*/ function alert ($msg,$url="") { $str = script type="text/javascript"; $str.="alert(".$msg.");"; if ($url != "") { $str.="window.location....