摘要: 把下面代码添加到主题目录下的functions.php中 //让WordPress只搜索文章的标题 add_filter( 'posts_search', 'dw_search_by_title', 10, 2 ); function dw_search_by_title( $search, $wp 阅读全文
posted @ 2021-03-10 17:40 bubuchu 阅读(328) 评论(0) 推荐(0) 编辑
摘要: bai|du|zhi|dao|zhuan|shu|1653 阅读全文
posted @ 2021-01-13 22:08 bubuchu 阅读(1567) 评论(0) 推荐(0) 编辑
摘要: error_reporting(E_ALL); 阅读全文
posted @ 2020-09-29 12:02 bubuchu 阅读(95) 评论(0) 推荐(0) 编辑
摘要: DEDE 修改默认文章命名规则 1、单独添加分类默认修改,修改文件:include/common.inc.php。 查找代码: //文档的默认命名规则 $art_shortname = $cfg_df_ext = '.html'; $cfg_df_namerule = '{typedir}/{Y}/ 阅读全文
posted @ 2020-09-24 11:01 bubuchu 阅读(287) 评论(0) 推荐(0) 编辑
摘要: C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\Bookmarks 阅读全文
posted @ 2020-09-09 14:41 bubuchu 阅读(6158) 评论(0) 推荐(0) 编辑
摘要: var msg = ''; $(".hover").each(function() msg += $(this).attr('data-txt') + ' '; }); 阅读全文
posted @ 2020-07-26 11:49 bubuchu 阅读(169) 评论(0) 推荐(0) 编辑
摘要: <if condition="$val == 1"> 1 <else /> 2 </if> 阅读全文
posted @ 2020-07-25 14:51 bubuchu 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-01-17 17:35 bubuchu 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 点击右边内容:<span onclick="copyContent(this);" title="点击复制">啊,我被复制了</span><br /> 已复制内容:<input id="copy_content" type="text" /> <script type="text/javascrip 阅读全文
posted @ 2019-11-25 14:56 bubuchu 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 一、打开注册表(通过开始菜单处输入命令输入 regedit回车即可打开注册表信息,或者Win键+R键打开输入框后输入regedit后回车) 二、打开注册表后,在左侧属性菜单进入下列路径“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Termi 阅读全文
posted @ 2019-11-22 20:46 bubuchu 阅读(1406) 评论(0) 推荐(0) 编辑