学好php,坚持自己的路,我的网店:http://shop34276988.taobao.com(对直销不信任者没必要访问),想了解直销请访问www.wanmei100.cn

写了个js返回错误信息函数

上一篇 / 下一篇  2008-03-07 13:59:03 / 个人分类:js与jquery学习笔记与总结

以下是代码

function GetBackAlert($msg,$isstop=0)
{
 $msg = str_replace('"','`',$msg);
  if($isstop==1) $msg = "<scrīpt>\r\n<!--\r\n alert(\"{$msg}\");\r\n-->\r\n</scrīpt>\r\n";
  else $msg = "<scrīpt>\r\n<!--\r\n alert(\"{$msg}\");history.go(-1);\r\n-->\r\n</scrīpt>\r\n";
  $msg = "<meta http-equiv=content-type content='text/html; charset=utf-8'>\r\n".$msg;
  return $msg;
}


TAG: 返回错误 js 函数

引用 删除 Guest   /   2008-05-25 22:11:06
www.meinv880.cn
www.xingchenbian33.cn
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar