2023-11-29 20:30:37
destoon去掉字段或者编辑器代码会自动转码功能在include/fields.func.php文件中大约17行注释掉: //$mv = $v['html'] == 'editor' ? dsafe($mv) : dhtmlspecialchars(trim($mv));
2023-11-23 14:05:39
我们在采集某条信息的时候因为不同页面的代码有时候会出现不同,导致入库的时候出现部分页面乱码。UPDATE 表名 SET 字段名 = SUBSTRING_INDEX(字段名, '某字符串', 1);
UPDATE Data_123 SET `abstract` = SUBSTRING_INDEX(`abstract`, '</main
2023-10-31 18:45:20
使用outline.js为文章H标签自动生成导航目录(Table of Contents)方法参考链接:1、https://github.com/yaohaixiao/outline.js 2、https://yaohaixiao.github.io/outline.js/relative.html 3、https://yaohaixiao.github.io/outline.js/flex.html 4、https://yaohaixiao.github.io/outline.js/ 引用的资
2023-10-27 01:35:56
参考链接:https://blog.csdn.net/zhang01457/article/details/1039709952、https://blog.csdn.net/qq_34034975/article/details/129162625 <!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv
2023-10-17 01:09:33
mysql查找表内字段重复的数据查找重复:SELECT itemid,wikiid,title from km_article_23 WHERE wikiid IN(
select wikiid from km_article_23 GROUP BY wikiid HAVING COUNT(wikiid)>1
)删除数据并保留ID为最小
2023-10-06 23:54:04
php截取“###”符号或者特定字符前的字符在php中可以使用正则表达式和preg_split函数来截取"###"符号前面的字符。下面是一个示例代码:$str = "Hello###World";
$result = preg_split("/###/", $str);
$firstPart = $result[0]
2023-10-03 15:16:27
写入高可以通过这几个文章的方法进行排查。1、https://blog.51cto.com/u_15162069/2735716 2、https://blog.csdn.net/fengsheng5210/article/details/123634920 3、https://blog.51cto.com/u_15075507/4093830
2023-09-18 02:41:09
js代码:function deleted() {
var query = location.href.split('?')[1];
if (query && query.match(/nobp/)) {
return;
}
function ajax(type, url, data, success, failed
2023-09-09 04:27:50
自动把网站被搜索引擎抓取的日志单独存放一个文件方便查看。 location ~ .* {
if ($http_user_agent ~* "spider" ) {
access_log /www/wwwlogs/www.1.log;
2023-05-23 03:45:26
mysql语句如下:UPDATE data_content_40 SET `模块id` = FLOOR(RAND() * 4) + 24 WHERE `已发` =0 AND `模块id` IS NULL这个命令会生成一个0到1之间的随机数,将其乘以4并使用FLOOR函数将结果向下取整,得到0到3之间的整数。然后将该整数加上24,得到24到