分享:
复制代码代码如下所示:
功能jsformat($str)
{
美元=修剪($ STR);
$str = str_replace('%s'的、,$str);
$str = str_replace(CHR(10),,$str);
$str = str_replace(CHR(13),,$str);
$str = str_replace(' ',' ',$str);
$str = str_replace(、,$str);
$str = str_replace(',' ,$str);
$str = str_replace(' '、' ,$str);
$str = str_replace(
返回$ STR;
}
使用不说,就是要jsformat直接调用($str)