83 篇
建站知识总结与分享
搜索“pre”
正则表达式Warning: preg_match_all(): Unknown modifier
web 0 0
30 0 2024-03-21 正则表达式
使用正则表达式的时候出现;Warning: preg_match_all(): Unknown modifier  这种情况多数是由定界符的问题引起的 比如以下错误的示范: $pattern = '/<a[^>]*>([^<]*)</a>/is'; 这是因为在使用/作为定界符时,...
PHP判断字符串中是否包含数组其中的一项
web 0 0
296 0 2023-11-21 PHP
方法一: $val="保暖羽绒服大甩价";$arr=array("羽绒服","毛呢大衣","毛衣","大甩价"); $exist = in_array(true, array_map(function($r) use($val) { return strpos($val, $r) !== false; }, $arr))...
Swiper prev按钮放在外面
web 0 0
332 0 2023-11-09 其他
Swiper prev按钮放在外面 方法:将按钮放在外面只需要将 <div class="swiper-button-prev"></div> 和 <div class="swiper-button-next"></div> 提取到 div class="swiper">.....
wordpress网站应用chattr
taotaoit 0 0
249 0 2023-11-02 Wordpress
网站总是被篡改,可以用chattr命令,锁死文件 全站锁死命令chattr +ia -R wwwroot wwwroot是网站的根目录文件名 但是这样缓存文件和上传目录,都锁死了,可能网站会不正常, 所以解除这两个目录的锁定 wp-content/cache wp-content/uploads ...
<b>Deprecated</b>: Array and string offset access syntax with curly braces is deprecated in
taotaoit 0 0
252 0 2023-11-01 PHP
Uncaught transport.js/parseResult() error: can't parse to JSON. <br /> <b>Deprecated</b>:  Array and string offset access syntax w...
wordpress配置伪静态.htaccess
taotaoit 0 0
343 0 2023-10-09 Wordpress
wordpress配置伪静态.htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME}...
WordPress写文章时提示“您正在编辑展示最新文章页面”,编辑器不加载,怎么解决?
web 0 0
495 0 2023-09-18 Wordpress
WordPress写文章时提示“您正在编辑展示最新文章页面”,编辑器不加载,怎么解决? 方法一: 首先,我们可以使用 WordPress 内置的数据库修复功能来解决 WordPress 写文章时提示“您正在编辑展示最新文章页面”的问题。在 WordPress 站点的根目录下找到 wp-config.php...
宝塔面板,nginx,wordpress,后台页面错乱,多一行代码<link rel="canonical" href="
taotaoit 1 0
570 0 2023-09-06 宝塔
宝塔面板,nginx,wordpress,后台页面错乱,多一行代码 <link rel="canonical" href="http://www.你的域名.com/wp-admin/edit.php" />  后台页面,右键,查看网站源代码,会发现顶部第一行多了<link rel="ca...
php中屏蔽~E_DEPRECATED错误,使php页面中不再DEPRECATED的错误提示
web 0 0
511 0 2023-08-08 PHP
E_ERROR:严重错误,系统无法继续执行下去,需要立即停止执行。 E_WARNING:警告级别错误,系统可以继续执行下去。 E_NOTICE:通知级别错误,一些值在赋值之前被使用了。 E_STRICT:编码标准的提示,用于标记一些代码编写不规范的地方。 E_DEPRECATED:在未来版本中将删除的过时功能的提示。 E_PARSE...
Deprecated: Function get_magic_quotes_gpc() is deprecated in
web 0 0
402 0 2023-08-07 PHP
Deprecated: Function get_magic_quotes_gpc() is deprecated in 原因是PHP 7.4不推荐使用get_magic_quotes_gpc函数替代(PHP 7.4 deprecated get_magic_quotes_gpc function alternative)...
Deprecated: Methods with the same name as their class will not be constructor...
web 0 0
362 0 2023-08-07 PHP
Deprecated: Methods with the same name as their class will not be constructor... 最近刚把php版本从5.6切换到7.0上,但是再重新打开项目时,报如下错误: Deprecated: Methods with the same name as th...
wordpress网站,提示Error establishing a database connection
taotaoit 0 0
394 0 2023-07-24 Wordpress
wordpress网站,提示Error establishing a database connection 网站以前正常访问,忽然就提示这个错误。 1,网上查找原因,有的说服务器内存太小,重启服务器就好了, 结果重启了mysql,apache,还是不行 https://blog.csdn.net/qq_356...
wordpress转移服务器后,后台登录不了
taotaoit 0 0
449 0 2023-06-16 Wordpress
wordpress转移服务器后,后台登录不了 用户名密码都对,点击登录按钮没反应, 开始以为,文件夹权限的问题,结果不是。 后来发现,原来数据表有13个,新服务器上只有7个表,不知道怎么导入的,会少表
React中 Uncaught TypeError: Super expression must either be null or a function
taotaoit 0 0
658 0 2023-03-20 React
React中 Uncaught TypeError: Super expression must either be null or a function 原来是把React.Component单词拼错了。 看到网上有些人也出现这个错误,基本都是代码或单词拼错的原因 正确代码: <!-- 准备一个容...
nodejs express编写接口,基于cors解决接口跨域问题
taotaoit 0 0
662 0 2023-01-16 nodejs
1,创建服务器页面代码index.js // 导入 express 模块 const express = require('express') // 创建 express 的服务器实例 const app = express() // 如果要获取 URL-encoded 格式的请求体数据,必须配置中间件-post请求时用到 app...
premiere怎样导出3gp格式
taotaoit 0 0
877 0 2023-01-15 其他
premiere怎样导出3gp格式 导出的时候格式选择MPEG4,就是3gp格式了 如果要导出mp4格式,选择H.264
关于本站

“最难不过坚持”

本人承接扒站仿站,php网站维护,病毒查杀,网站编辑,网站改版,html制作

有需要网站维护,改版,病毒查杀,网站编辑,网站备案,html制作等相关的工作可以联系我。
本人有多年相关工作经验,也可提供免费咨询,交个朋友。
有需要探讨问题的朋友,也可以加我微信,共同探讨!
微信:15011482830 QQ:408917339

6281512 2594 39
最新评论
https://jueru.net/
评 留言
:weixiao:
评 留言
:shuijiao: :weiqu: :zhenbang: :leng:
评 留言
:yiwen: :yiwen: :yiwen: :yiwen:
评 EasySass: could not generate CSS file. See Output panel for details.
这个业务逻辑多少都有点奇怪了,阅读浏览次数增值在新闻详情页的控制器方法里setInc,这怎么还写进模型事件里了。如果非要用onAfterRead也可以,把新闻文章的内容单独分出来一个news_content表,然后把它和news做关联,然后给news_content表的onAfterRead事件做增值处理,这样点进新闻页内查询到文章内容时才会触发它。
评 TP6模型事件-查询后onAfterRead不好用
文章标签更多
ThinkPHP (254)
Mysql (58)
DedeCms (33)
jQuery (67)
证件照 (1)
setInc (4)
setDec (4)
onclick (5)