会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
大智如蠢
https://github.com/9499574
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2020年12月18日
phpstorm字符批量替换
摘要: 快捷键:ctrl+shift+f 或者 编辑->查找->在路径中查找 在按快捷键:ctrl+shift+r
阅读全文
posted @ 2020-12-18 14:29 大智如蠢
阅读(1222)
评论(0)
推荐(0)
2020年10月23日
php rsa 解密 routines:rsa_ossl_private_decrypt:padding check failed asn1 encoding routines:asn1_d2i_ex_primitive:nested asn1 error
摘要: 坑 大坑 字符串多的时候 需要分割去加减密 网上基本上帖子都是 117 128 然后就提示标题报错了 解决方法 $key_len = openssl_pkey_get_details($pri_key)['bits']; $part_len = $key_len / 8; 计算出实际分割的长度 原文
阅读全文
posted @ 2020-10-23 15:22 大智如蠢
阅读(1503)
评论(0)
推荐(0)
2020年6月19日
ztree点击节点名称选中checkbox
摘要: var setting = { check: { enable: true, chkboxType:{"Y" : "s", "N" : "s" } }, data: { simpleData: { enable: true } }, callback: { beforeClick: beforeCl
阅读全文
posted @ 2020-06-19 15:42 大智如蠢
阅读(1493)
评论(0)
推荐(0)
2020年5月14日
PHP csv导出office excel乱码问题解决
摘要: <?php class Csv_export { function render($filename,$title,$data=[]){ ob_end_clean(); header("Content-Type: application/force-download"); header("Conte
阅读全文
posted @ 2020-05-14 16:15 大智如蠢
阅读(489)
评论(0)
推荐(0)
2020年5月13日
PhpOffice\PhpSpreadsheet导出excel长数字科学计算问题解决
摘要: use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Cell\DataType; static function export($filename,$title,$data){ $spreadsheet = n
阅读全文
posted @ 2020-05-13 13:02 大智如蠢
阅读(710)
评论(1)
推荐(0)
2020年4月10日
PHP导出word 文件损坏问题
摘要: WPS能正常打开 office word 打开失败 代码中修改导出文件后缀为【.doc】就能正常打开
阅读全文
posted @ 2020-04-10 17:33 大智如蠢
阅读(436)
评论(0)
推荐(0)
2020年3月30日
解决layui-table复杂表头数据错位问题
摘要: 如果每个colspan > 1 的时候 应该是没问题 如果colspan=1的时候会导致错位 检查表头代码发现colspan=1 在去检查表格内容代码发现会把 合并的头 td也显示出来 解决方案: 在lay-data里面合并的数据里面增加一个 [,colGroup:true]参数,版本测试2.5.6
阅读全文
posted @ 2020-03-30 15:42 大智如蠢
阅读(7856)
评论(0)
推荐(0)
2020年3月19日
JSON.parse() Uncaught SyntaxError: Unexpected token 让特殊字符原形毕露
摘要: <?php $content = "测试: 测试 测试。 测试 测试 测试"; $content = json_encode($content); ?> <script> var content = '<?=$content?>'; content = JSON.parse(content); co
阅读全文
posted @ 2020-03-19 11:27 大智如蠢
阅读(437)
评论(0)
推荐(0)
2020年3月13日
PHP文件上传类
摘要: <?php /** * 上传文件类 * Class UploadFile * 使用方法 * $this->load->library('uploadfile',['path','jpg,png,pdf','2','file']); * $this->uploadfile->upload(); * 数
阅读全文
posted @ 2020-03-13 18:29 大智如蠢
阅读(380)
评论(0)
推荐(0)
2019年12月24日
加载不同域名页面 跨域问题解决
摘要: 通过PHP抓取页面在显示出来 <?php$url = 'http://www.baidu.com'; $content = file_get_contents($url); $content = str_replace('/static/',$url .'/static/',$content); $
阅读全文
posted @ 2019-12-24 19:44 大智如蠢
阅读(1023)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告