会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
迷途
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2022年12月3日
thinkPHP6.0 开启多应用后无法获取控制器和方法名、返回空值
摘要: 首先开启多应用的方法: composer require topthink/think-multi-app 定义路由: <?php use think\facade\Route; Route::any('/user/login', '\\app\\index\\controller\\User@lo
阅读全文
posted @ 2022-12-03 22:20 _迷途
阅读(472)
评论(0)
推荐(0)
2022年11月24日
PHP轻量级验证器 Particle\Validator
摘要: Particle\Validator是一个小巧优雅的实用的PHP验证类库,提供了一个非常简洁的API。它无需依赖其他组件,提供友好的文档,并且有利于扩展。 composer require particle/validator use Particle\Validator\Validator; $v
阅读全文
posted @ 2022-11-24 16:20 _迷途
阅读(129)
评论(0)
推荐(0)
2022年11月16日
【PHP】YouTube JSON字幕格式转srt格式并下载
摘要: <?php function formatNum(int $time) { if ($time < 10) { return "0{$time}"; } return $time; } function changeTimeType(int $num): string { $millisecond
阅读全文
posted @ 2022-11-16 19:54 _迷途
阅读(297)
评论(0)
推荐(0)
2022年11月15日
PHP YouTube字幕转srt格式
摘要: <?php function formatNum(int $time) { if ($time < 10) { return "0{$time}"; } return $time; } function changeTimeType(int $num): string { $millisecond
阅读全文
posted @ 2022-11-15 13:38 _迷途
阅读(77)
评论(0)
推荐(0)
2022年9月22日
JAVA字符串转Unicode编码
摘要: import java.util.ArrayList; public class Hello { public static void main(String[] args) { String s = "我爱JAVA"; System.out.println(s2unicode(s)); } sta
阅读全文
posted @ 2022-09-22 00:08 _迷途
阅读(479)
评论(1)
推荐(0)
2022年7月28日
tp5多数据库验证字段唯一
摘要: <?php namespace app\admin\validate; use think\validate; class VideoKeywords extends validate { protected $rule = [ 'keyword' => ['require', 'unique' =
阅读全文
posted @ 2022-07-28 17:23 _迷途
阅读(168)
评论(0)
推荐(0)
selenium捕获ajax请求内容
摘要: import json import os, sys import platform import time from seleniumwire import webdriver from selenium.webdriver.firefox.firefox_binary import Firefo
阅读全文
posted @ 2022-07-28 17:19 _迷途
阅读(463)
评论(0)
推荐(0)
2022年7月15日
PHP输出数据库里的数字太长导致四舍五入
摘要: SELECT CAST(id AS char) AS id FROM `table_name` 我也不知道为啥会导致自动四舍五入,有知道的吗?
阅读全文
posted @ 2022-07-15 16:09 _迷途
阅读(58)
评论(0)
推荐(0)
2022年4月20日
PHP 获取指定日期区间天数不重复的日期或者时间戳
摘要: function getDateRange($dateStart,$dateEnd,bool $timestamp=false): array { $dateStartTimeStamp = strtotime($dateStart); $dateEndTimeStamp = strtotime($
阅读全文
posted @ 2022-04-20 13:18 _迷途
阅读(136)
评论(0)
推荐(0)
2022年4月11日
tp在模板布局文件赋值变量
摘要: 在Base控制器里写: View::assign('aaa','123');
阅读全文
posted @ 2022-04-11 15:50 _迷途
阅读(49)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告