控制器中关键代码如下: // 查询状态为1的用户数据 并且每页显示10条数据 $list = Db::name('user')->where('status',1)->paginate(10); // 把分页数据赋值给模板变量list $this->assign('list', $list); // ...
分类:
其他好文 时间:
2020-07-03 17:11:12
阅读次数:
131
Archive old log files NLog 4.5 makes it easy to setup archive logic to move/cleanup old files with dynamic fileName-Layout. You just need to configure ...
分类:
其他好文 时间:
2020-07-03 15:55:03
阅读次数:
68
Hutool工具包导出Excel文件异常 You need to add dependency of poi-ooxml to your project 出现如下异常信息 cn.hutool.core.exceptions.DependencyException: You need to add d ...
分类:
其他好文 时间:
2020-07-02 22:06:57
阅读次数:
314
原理 这里只提供对于今天时间的限定,至于前天后天同理可得 ` $start_time=strtotime(date("Y-m-d",time()));//今天开始时间 $end_time=$start_time+60*60*24;//今天结束时间 明天开始时间 $end_time1=$start_t ...
分类:
数据库 时间:
2020-07-02 11:55:28
阅读次数:
58
Extracting keywords from texts has become a challenge for individuals and organizations as the information grows in complexity and size. The need to a ...
分类:
其他好文 时间:
2020-06-30 20:36:13
阅读次数:
83
视图view 使用的时候报错: composer require topthink/think-view 命令创建的时候遇到错误:“Command "build" is not defined.” composer require topthink/think-multi-app ...
分类:
Web程序 时间:
2020-06-30 10:49:09
阅读次数:
130
高效能人士的七个习惯: 习惯一:积极主动 Be Proactive 习惯二:以始为终 Begin with the end in mind 习惯三:要事第一 Put first things first 习惯四:双赢思维 Think win/win 习惯五:知彼解己 Seek first to un ...
分类:
其他好文 时间:
2020-06-29 22:49:01
阅读次数:
119
在登录自有npm库的时候发现输入正确的账号密码,依然会报错 Unable to authenticate, need: BASIC realm="Sonatype Nexus Repository Manager" 在尝试网上提供方法后没有得到解决, 然后尝试输入一个错误的密码,发现得到的结果相同, ...
分类:
其他好文 时间:
2020-06-29 11:43:57
阅读次数:
549
ERROR Failed to compile with 2 errors 15:32:41 Failed to resolve loader: less-loader You may need to install it. Failed to resolve loader: less-loader ...
分类:
其他好文 时间:
2020-06-29 10:07:38
阅读次数:
57
<?php namespace lib; use think\Loader; /** * Description of Qrcode * * @author lsf */class Qiniu { private $bucket; private $uploadMgr; private $qiniu ...
分类:
Web程序 时间:
2020-06-27 16:03:35
阅读次数:
126