惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
小众软件
小众软件
GbyAI
GbyAI
B
Blog RSS Feed
月光博客
月光博客
A
About on SuperTechFans
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Vercel News
Vercel News
F
Fortinet All Blogs
Apple Machine Learning Research
Apple Machine Learning Research
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
博客园_首页
G
Google Developers Blog

博客园 - 亲,注意身体

magento 数据清理 magento top menu edit CookieConter 转换为string magento sitemap cms page remove home and generate sitemap error magento toplink blank li magento 语言包 magento moneybooker 操作 JS 正则 js 数组 组合(转) magento checkout require moneybooker api/mqi query magento 记录蜘蛛爬行日志 magento moneybooker redirect 添加信任站点 bat 设置信任站点等级 moneybooker api 文档 magento htaccess Navicat 注册码,序列号 magento 修改订单号 Magento 删除所有订单 适于于1.4+
magetno awblog auto generate title id, js replace
亲,注意身体 · 2012-07-24 · via 博客园 - 亲,注意身体

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", "" );