function gen()
{
var v=document.getElementById('title').value;
var s=v.toLowerCase();
s=s.replace(/[^a-zA-Z ]/g,'');
s=s.replace(/ /g,'-');
document.getElementById('identifier').value=s;
}
var obj = document.getElementById('title');
obj.onblur = gen;

 

/app/code/community/AW/Blog/Block/Manage/Blog/Edit/Tab/Form.php

find <script> insert it.

 

/app/code/community/AW/Blog/controllers/Manage/BlogController.php

replace 

 

$tags = preg_split("/[, ]+\s*/i", $data['tags'], -1, PREG_SPLIT_NO_EMPTY);

with

 

$tags = preg_split("/[,]+\s*/i", $data['tags'], -1, PREG_SPLIT_NO_EMPTY);
 

 


 

 

/app/code/community/AW/Blog/Model/post.php

保存文章前替换文章内容

$content=str_replace("源","目标",$content);
 

 

 

 

 

c#替换空格 tab字符 换行符 新行

string trim Regex.Replace( text, @"\s", "" );

 

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2022-01-11
  • 2021-12-18
  • 2021-06-14
  • 2022-02-16
  • 2021-09-16
  • 2021-09-16
猜你喜欢
  • 2021-08-25
  • 2022-12-23
  • 2021-11-18
  • 2021-10-23
  • 2021-08-27
  • 2021-11-22
  • 2021-07-29
相关资源
相似解决方案