2022年9月8日

jQuery-miniTip基本使用方法

摘要: <link href="https://cdn.bootcdn.net/ajax/libs/miniTip/1.5.3/miniTip.min.css" rel="stylesheet"> <script src="https://cdn.bootcdn.net/ajax/libs/miniTip/ 阅读全文

posted @ 2022-09-08 17:26 小馬過河﹎ 阅读(39) 评论(0) 推荐(0)

动态datalist使用方法一例

摘要: <input name="person_school" value="{$row[person_school]}" list="school_list" placeholder="请填写您的学校名称" /> <datalist id="school_list"></datalist> <script 阅读全文

posted @ 2022-09-08 17:22 小馬過河﹎ 阅读(38) 评论(0) 推荐(0)

jQuery复制到剪贴板clipboard.js简单用法

摘要: 复制到剪贴板 <!-- 引入js文件 --> <script src="https://cdn.bootcdn.net/ajax/libs/clipboard.js/2.0.8/clipboard.min.js"></script> <!-- 给dom添加class/data-clipboard-t 阅读全文

posted @ 2022-09-08 17:21 小馬過河﹎ 阅读(382) 评论(0) 推荐(0)

ThinkPHP3加固I()函数过滤单引号

摘要: function.php function htmlentities_custom($str) { return htmlentities($str, ENT_QUOTES); } config.php return [ 'DEFAULT_FILTER' => 'htmlentities_custo 阅读全文

posted @ 2022-09-08 17:19 小馬過河﹎ 阅读(85) 评论(0) 推荐(0)

vue-hisory项目在nginx下的伪静态配置

摘要: location / { try_files $uri $uri/ /index.html last; index index.html; } add_header 'Access-Control-Allow-Origin' '*' always; #允许来自所有的访问地址 add_header ' 阅读全文

posted @ 2022-09-08 17:16 小馬過河﹎ 阅读(975) 评论(0) 推荐(0)

ThinkPHP3.2.5 GIF.class.php for php7.4

摘要: PHP7.4不再支持使用大括号访问数组以及字符串的偏移 PHP7.4不再支持数组{}写法,统一为数组[] 路径:/ThinkPHP/Library/Think/Image/Driver/GIF.class.php <?php // + // | TOPThink [ WE CAN DO IT JUS 阅读全文

posted @ 2022-09-08 17:14 小馬過河﹎ 阅读(77) 评论(0) 推荐(0)

vue使用layui上传

摘要: 问题在于vue渲染多个虚拟dom无法触发layui.upload.render()方法,解决方案为:点击上传按钮的容器时删除dom并重新渲染。 核心代码 <div class="layui-form-item"> <div class="layui-form-label">图片附件</div> <d 阅读全文

posted @ 2022-09-08 17:12 小馬過河﹎ 阅读(273) 评论(0) 推荐(0)

使用Array.reduce对数组去重

摘要: JavaScript uniqArray = arr => arr.reduce((acc, val) => { acc.indexOf(val) == -1 && acc.push(val) return acc }, []) Examples uniqArray([1, 2, 2, 3]) // 阅读全文

posted @ 2022-09-08 17:11 小馬過河﹎ 阅读(23) 评论(0) 推荐(0)

php通过文件路径获取文件名/文件标题/文件后缀名/文件大小

摘要: ### 通过路径获取文件名 ```php function getFileName($filePath) { return \mb_substr($filePath, \mb_strrpos($filePath, '/') + 1); } // V2 function getFileName($fi 阅读全文

posted @ 2022-09-08 17:06 小馬過河﹎ 阅读(371) 评论(0) 推荐(0)

字体文件转base64

摘要: 链接 https://transfonter.org/ 配置 阅读全文

posted @ 2022-09-08 17:04 小馬過河﹎ 阅读(50) 评论(0) 推荐(0)

ThinkPHP3图片水印文字居中

该文被密码保护。 阅读全文

posted @ 2022-09-08 17:01 小馬過河﹎ 阅读(0) 评论(0) 推荐(0)

PHP导出Excel类 Excel.class.php

摘要: <?php namespace Common\Cls; /** * 生成excel文件操作 * * @author wesley wu * @date 2013.12.9 */ class Excel { private $limit = 10000; public function downloa 阅读全文

posted @ 2022-09-08 17:00 小馬過河﹎ 阅读(51) 评论(0) 推荐(0)

SmsController.class.php

该文被密码保护。 阅读全文

posted @ 2022-09-08 14:37 小馬過河﹎ 阅读(0) 评论(0) 推荐(0)

ThinkPHP引入阿里云aliyun-openapi-php-sdk

该文被密码保护。 阅读全文

posted @ 2022-09-08 14:35 小馬過河﹎ 阅读(0) 评论(0) 推荐(0)

PHP配置文件修改session过期时间

摘要: # 利用 cookie 来传递 sessionid session.use_cookies = 1 # SessionID 在客户端 Cookie 储存的时间(秒) / 86400=1天 session.cookie_lifetime = 86400 # Session 数据在服务器端储存的时间(秒 阅读全文

posted @ 2022-09-08 14:33 小馬過河﹎ 阅读(51) 评论(0) 推荐(0)

天地图坐标系转高德坐标系 WGS84转GCJ02

摘要: let [lng, lat] = [116.391358342, 39.9049662090001] console.log([lng, lat].toString()) console.log(wgs84Togcj02(lng, lat).toString()) function wgs84Tog 阅读全文

posted @ 2022-09-08 14:31 小馬過河﹎ 阅读(1915) 评论(0) 推荐(0)

css 渐变文字

摘要: 源码 .container{ width:100vw; height:100vh; display:flex; justify-content:center; align-items:center; } .container .content{ font-size:40px; background: 阅读全文

posted @ 2022-09-08 14:30 小馬過河﹎ 阅读(10) 评论(0) 推荐(0)

thinkphp3.2.5路由配置无法跳转到外部链接的问题

摘要: 官方文档 解决方法 按照文档的说明发现行不通,看了下Route.class.php 修改了第95行附近代码: 阅读全文

posted @ 2022-09-08 14:27 小馬過河﹎ 阅读(27) 评论(0) 推荐(0)

PHP二维码解码QrReader类|二维码图片转字符串

摘要: composer qrcode-detector-decoder composer require khanamiryan/qrcode-detector-decoder 1.0.3 ThinkPHP index.php引入composer require './vendor/autoload.ph 阅读全文

posted @ 2022-09-08 14:25 小馬過河﹎ 阅读(395) 评论(0) 推荐(0)

mysql order by 使用汉字字段排序

摘要: order by convert(`field` using 'GBK') 阅读全文

posted @ 2022-09-08 11:41 小馬過河﹎ 阅读(47) 评论(0) 推荐(0)

导航