转自:http://www.wordlm.com/html/6723.html
tp5.1 nl2br使用
tp5.1中模板使用{$str|nl2br}调用nl2br不好用,直接显示<br /> 使用如下方式则可以: {php} echo nl2br($str);{/php}
layui增加必填项前面加*号
.layui-form-label.required:before{ top: 8px; right: 8px; color: red; content: '*'; font-weight: 900; line-heig…
php水印类,支持文字和图片的水印添加
/** * 图片水印类 */ class ImageWater{ /** * 为图片增加水印函数 * @param string $imgSrc 目标图片,可加相对路径 * @param string $markImg …
Flex 布局教程之语法篇 转
转自:http://www.ruanyifeng.com/blog/2015/07/flex-grammar.html 2009年,W3C 提出了一种新的方案----Flex 布局,可以简便、完整、响应式地实现各种页面布…
Window系统中将exe文件设置为自启动的后台服务
sc create 服务名 binPath=d:\xxx\123.exe start=auto
设置.exe文件开机启动
运行“regedit”,编辑注册表 HKEY_LOCAL_MACHINE -- SOFTWARE -- Microsoft -- Windows -- CurrentVersion -- Run 右键Run,新建字符串值…
Windows 安装xxd服务 转
转自:https://www.w3cschool.cn/xuanim/xuanim-7reh316n.html XXD下载地址: https://xuan.im/page/download.html 选择“消息代理服务器…
apache 服务器上多端口访问项目
httpd.conf中#Listen 12.34.56.78:80注释 httpd-vhosts.conf中 Listen 80 <VirtualHost *:80> ServerAdmin webmaste…
解决layui的table在reload之后工具栏按钮失效的问题
转自https://blog.51cto.com/1197822/2472692?source=dra layui.use(['form','layer','table'],function(){ var form = …
【原创】完美解决HTML中footer保持在页面底部问题
制作页面时,footer需要保证在页面最底端,需要达到的效果是,不论页面长短,footer都要在最底部显示,即页面长,滚动到页面末尾时看到footer;页面短,footer则固定在最底部 <div id="cont…
phpmailer 163邮箱发件失败解决方法
邮件发送失败,调试报错:SMTP Error: Could not connect to SMTP host. 163smtp服务器,需要开启SMTP功能,并且设置SMTP授权码,缺一不可,授权码是用来登录邮箱的密码。发…
phpmailer连接不上smtp 转
https://www.bbsmax.com/A/kPzOXn61Jx/ 确认扩展已支持 首先查看PHP环境扩展中是否开启了socket 和openssl扩展,如若没有开启,就在php.ini…
phpmailer6.1使用
转自https://packagist.org/packages/phpmailer/phpmailer use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMaile…
winRAR 破解注册码 转
转自https://blog.csdn.net/qingkaqingka/article/details/88861805 新建一个名为rarreg.key的文件,其中写入 RAR registration data F…
php下载大文件,支持断点续传案例 转
转自https://www.jianshu.com/p/db9531baee4e 思路 1.设置header头信息 2.使用php的输出缓冲ob_flush,flush 2.下载速度*fread(size) ,sleep…
thinkphp5 判断数据集数组是否为空的方法
// 数据集返回类型 'resultset_type' => 'collection', (数据库的查询结果也就是数据集,默认的配置下,数据集的类型是一个二维数组,我们可以配置成数据集类, 就可以支持对数据集更多的…
layer提交图片与form表单同时提交数据 转
转自https://blog.csdn.net/qq_34495753/article/details/78662200 https://blog.csdn.net/qq_38280150/article/details…
xampp 添加mysql服务后 提示Can't create test file xxx lower-test
在mysql文件夹中搜索ini文件,mysql/data文件夹中的my.ini中路径是默认路径,修改为实际路径既可。
Redis在Php项目中的实际应用场景 转
转自 https://www.cnblogs.com/tdalcn/p/10483975.html https://www.cnblogs.com/dump/p/8243868.html 前言 一些案例中有的同学说为什么…
数据库大批量SQL插入性能优化 转
https://blog.csdn.net/qq_28137309/article/details/80934251 https://blog.csdn.net/qq_22855325/article/details/7…
ThinkPHP5 CSV导入导出
转自https://blog.csdn.net/qq_37138818/article/details/81189240
layui 表格渲染之后 搜索框保留值 并异步获取子分类
<form class="layui-form"> <div class="layui-inline"> <div class="layui-input-inline"> <se…
layui的文件上传设置自定义的文件格式 转
转自https://blog.csdn.net/qq_40389276/article/details/101205755 以|分割,设置多个文件后缀 upload.render({ elem: '#sc_file', …
php+html5实现文件断点续传 转
转自https://blog.csdn.net/xueling022/article/details/52885777 一、一些知识准备 断点续传,既然有断,那就应该有文件分割的过程,一段一段的传。 以前文件无法分割,但…
layui 表单和文件上传一起传到后台
转自https://blog.csdn.net/qq_38083665/article/details/86608667 <form class="layui-form"> <div class="la…
layui 中select下拉change事件失效的解决方法 转
转自https://www.jb51.net/article/170431.htm 1.select中添加 lay-filter=“test” 1 <select lay-filter="test"><…
按钮的Ajax请求时一次点击两次提交的解决方法 转
转自https://www.jb51.net/article/93452.htm 页面中的按钮的type是submit的: <input type="submit" value="Create" id="submi…
layui数据表格自定义每页条数limit
table.render({ elem: '#data_grid' //,width: 900 //,height: 274 ,cols: [[ //标题栏 {field: 'id', title: 'ID', widt…