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

推荐订阅源

T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
F
Fortinet All Blogs
B
Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
腾讯CDC
小众软件
小众软件
G
Google Developers Blog
V
Visual Studio Blog
罗磊的独立博客
GbyAI
GbyAI
V
V2EX
大猫的无限游戏
大猫的无限游戏
H
Help Net Security
L
LangChain Blog
Engineering at Meta
Engineering at Meta
量子位
The GitHub Blog
The GitHub Blog
博客园 - 司徒正美
WordPress大学
WordPress大学
B
Blog RSS Feed

博客园 - 亲,注意身体

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