[php] <?php function htmltojs($str){ $re=''; $str=str_replace('\','\\',$str); $str=str_replace("'","'",$str); $str=str_replace('"','"',$str); $str=str_replace('t','',$str); $str= split("rn",$str); //已分割成数组 for($i=0;$i<count($str);$i++){ $re.="document.writeln("".$str[$i]."");rn"; //加上js输出 } return $re; } ?> [/php]

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-11-12
  • 2021-11-14
猜你喜欢
  • 2022-02-09
  • 2021-12-24
  • 2022-01-10
  • 2022-01-25
  • 2022-02-11
  • 2022-12-23
相关资源
相似解决方案