方法一:手动编辑添加
方法二:使用程序在输出内容时实现,又不影响后台内容的编辑。 下面是PHP自动给文章内容添加关联链接方法和示例: Keylinks函数方法:
参数一:要处理的内容
参数二:替换次数
返回结果:处理后的内容 <div class="codetitle"><a style="CURSOR: pointer" data="74567" class="copybut" id="copybut74567" onclick="doCopy('code74567')"> 代码如下: