46 篇
建站知识总结与分享
搜索“use”
tp5.1错误SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'"
taotaoit 0 0
128 0 2024-03-27 ThinkPHP5.1
在用model('shop')->get($id); 查找信息的时候,返回错误: tp5.1错误SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'" 原因: 使用模型查询get()方法,默认主键...
jquery页面中多个tab切换,循环应用mouseenter事件
web 0 0
359 0 2023-11-13 jQuery
jquery页面中多个tab切换,循环应用mouseenter事件 效果 页面中有多个tab切换,用的mouseenter事件,就想着循环定义mouseenter事件,不就省事了吗,结果出问题了 1,如果手动写死,一个tab框,写一个mouseenter事件,可以正常运行 2,如果获取...
tp5,批量添加insertAll,分批插入Db::name('user')->data($data)->limit(100)->insertAll();
taotaoit 0 0
854 0 2023-09-22 ThinkPHP5.1
用tp5做excel批量导入的时候,由于数据量很大(6万条),导致提示如下错误: The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the ...
【mysql】关于命令SHOW CREATE TABLE <表名\G>报错问题:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/G' at line 1
web 0 0
875 0 2023-04-07 Mysql
【mysql】关于命令SHOW CREATE TABLE <表名\G>报错问题:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right ...
mouseover 和 mouseenter的区别
web 0 0
527 0 2023-02-27 JavaScript
mouseenter:当鼠标移除元素本身(不包含元素的子元素)会触发事件,也就是不会冒泡,对应的移除事件是mouseleave mouseover和mouseenter的异同体现在两个方面: 1. 是否支持冒泡 2.事件的触发时机 运行下面的代码,我们可以直观的发现两者的区别: <!DOCTYPE html> <...
Error Code: 1046. No database selected Select the default DB to be used by double-clicking its name in the SCHEMAS list in the sidebar.
web 0 1
1205 0 2023-01-17 Mysql
MySQL Workbench执行sql语句的时候,提示错误 Error Code: 1046. No database selected  Select the default DB to be used by double-clicking its name in the SCHEMAS list in the s...
vue尚品汇-carousel轮播图全局组件
taotaoit 0 0
626 0 2022-12-15 Vue
vue尚品汇-carousel全局组件 如果项目当中出现类似的功能,且重复利用,封装为全局组件----【不封装也可以】,但要有封装的思想 为了封装全局的轮播图组件:让Floor与listContainer组件中的代码一样,如果一样完全可以独立出来封装为一个全局组件。 <template> <div clas...
[vuex] must call Vue.use(Vuex) before creating a store instance.
web 0 0
600 0 2022-12-09 Vue
[vuex] must call Vue.use(Vuex) before creating a store instance. 2、问题原因 在创建store的时候、要先声明使用vuex。就是先后问题、使用顺序出现问题 3、错误代码还原 注意:在main.js中调整Vue.use(Vuex)和import store ...
Vue练习:Uncaught SyntaxError: Cannot use import statement outside a module
taotaoit 0 0
945 0 2022-12-05 Vue
Vue练习:Uncaught SyntaxError: Cannot use import statement outside a module 在.html文件中引入vue组件,报错 报错是正常的,.vue文件需要在脚手架vue-cli中才能正常使用
vue项目关闭eslint校验,lintOnSave:false,error 'a' is defined but never used
taotaoit 0 0
886 0 2022-11-16 Vue
比如在入口文件main.js中,定义一个变量a,但是后面并未使用该变量, 则npm run serve运行程序,会提示错误 error  'a' is defined but never used  no-unused-vars 如何关闭eslint校验? 打开vue.con...
如何解决axios.then回调中“response‘已定义但从未使用”的问题error 'response' is defined but never used
web 0 0
1444 0 2022-11-15 Vue
我正在使用Axios提交一个Post请求,如果请求成功,我想给用户一些确认。但是,我不需要使用response变量,因此我得到了一个eslint错误。如何解决这个问题? axios.post('/api/option.json', { choices: myChoices }) .then(response =&g...
tp5.1提示SQLSTATE[42S22]: Column not found: 1054 Unknown column 'g.isDel' in 'where clause'
taotaoit 0 1
1319 0 2022-10-25 ThinkPHP5.1
tp5.1提示SQLSTATE[42S22]: Column not found: 1054 Unknown column 'g.isDel' in 'where clause' 提示字段不存在,但数据库里面明明有这个字段, 原因很简单,因为下面还有一条sql语句用到了这条where条件,但是没设置别名->alias...
cnpm : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
web 0 0
768 0 2022-10-17 其他
cnpm : 无法加载文件 C:\Users\Administrator\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。 解决方式: 2、点击“管理员身份运行”Windos PowerShell 3、输入“ set-ExecutionPolicy RemoteSigned”回车...
nvm use xxx 报错:exit status 1
web 0 0
757 0 2022-10-17 nodejs
问题原因: 熟悉nvm的小伙伴应该知道在 1.1.8版本之前,切换nvm会有一到两次权限确认提示;而nvm为了不让切换nodejs版本变得这么麻烦,提升用户体验,想尽办法把提示干掉了。但是因此又从根源上产生了权限问题,所以要解决这个报错,得从windows权限搞起 解决方案: 一、用管理员模式打开命令行,再nvm ...
linux创建新用户,密码,提示:无效的密码:密码少于8 个字符
taotaoit 5 1
3313 0 2022-10-10 Linux
linux创建新用户,密码,提示:无效的密码:密码少于8 个字符 创建新用户 [root@localhost ~]# useradd zhangsan 给新用户创建密码 [root@localhost ~]# passwd zhangsan 更改用户zhangsan 的密码 。 新的密码:(可以输入123456) ...
vue无法加载文件C:\Users\Administrator\AppData\Roaming\npm\vue.ps1因为在此系统上禁止运行脚本……解决办法
web 0 0
1050 0 2022-09-22 Vue
vue无法加载文件C:\Users\Administrator\AppData\Roaming\npm\vue.ps1因为在此系统上禁止运行脚本…… 解决方法: 1、管理员身份运行PowerShell(命令提示符,来源于Linux的命令提示符也叫Shell) win11如下 2、...
关于本站

“最难不过坚持”

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

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

6400043 2609 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)