会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
风一样轻盈
要首先知道怎么做,剩下的就交给时间处理了
博客园
首页
新随笔
联系
订阅
管理
2025年8月8日
fastadmin 无限极分类 不进行分页操作处理
摘要: define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) { var Controller = { index: function () { //
阅读全文
posted @ 2025-08-08 11:00 consideration
阅读(45)
评论(0)
推荐(0)
2025年3月21日
前端传过来的 json 对象格式的数据 总是出现乱码 例如 quot
摘要: 1,很简单就可以解决 使用php自带的函数 html_entity_decode
阅读全文
posted @ 2025-03-21 07:39 consideration
阅读(12)
评论(0)
推荐(0)
2025年3月10日
h5文件上传并且压缩文件
摘要: public function uploadImage() { // 获取 Base64 编码的文件数据 $base64Data = $this->request->post('file'); if (empty($base64Data)) { return json([ 'code' => 0,
阅读全文
posted @ 2025-03-10 16:51 consideration
阅读(14)
评论(0)
推荐(0)
2025年3月1日
构建树和给对应的分类 拼接字符串 (无限极分类)
摘要: <?php namespace app\admin\model; use think\Model; use think\Db; class CategoryServe extends Model { // 表名 protected $name = 'category_serve'; // 自动写入时
阅读全文
posted @ 2025-03-01 17:24 consideration
阅读(10)
评论(0)
推荐(0)
2025年2月27日
通过code 获取openid
摘要: $code = $this->request->post('code'); $appid = '你的appid'; $appsecret = '你的secret'; $weixin = getJson('https://api.weixin.qq.com/sns/jscode2session?app
阅读全文
posted @ 2025-02-27 14:43 consideration
阅读(17)
评论(0)
推荐(0)
2025年2月24日
No input file specified.
摘要: 我是使用apache 碰到这个问题的 就是apache 中的省略入口文件没有配置好 <IfModule mod_rewrite.c>Options +FollowSymlinks -MultiviewsRewriteEngine onRewriteCond %{REQUEST_FILENAME} !
阅读全文
posted @ 2025-02-24 22:35 consideration
阅读(14)
评论(0)
推荐(0)
2024年2月2日
file_get_contents 避免出现按个 ssl -60 的报错 ,不进行数据验证 或者 使用php.ini 进行文件配置
摘要: 1, 使用不去验证数据$stream_opts = [ "ssl" => [ "verify_peer" => false, "verify_peer_name" => false, ] ]; $user_info = json_decode(file_get_contents($user_info
阅读全文
posted @ 2024-02-02 13:58 consideration
阅读(29)
评论(0)
推荐(0)
2024年2月1日
正则表达式:javascript key=value 进行字符串拼接,默认不允许逗号出现
摘要: /^([a-zA-Z]+=[a-zA-Z0-9]+,)*[a-zA-Z]+=[a-zA-Z0-9]+$/.test('a=a,af=sasfd,b=asdfJH,asa=fdc,c=sdf')
阅读全文
posted @ 2024-02-01 22:55 consideration
阅读(67)
评论(0)
推荐(0)
获取同一个表中的 年龄相同的的人员
摘要: SELECT S1.Sname,S1.sex FROM student AS S1, student AS S2 WHERE S1.age = S2.age AND S1.Sname <> S2.Sname GROUP BY S1.Sname ORDER BY S1.age 学生表中 求出 年龄相同
阅读全文
posted @ 2024-02-01 17:52 consideration
阅读(86)
评论(0)
推荐(0)
tp 框架进行数据查询
摘要: 模型层方面 设置表名 主见名称 字段 protected $name = 'recruit'; protected $pk = 'recruit_id'; protected $field = []; // 查找详情数据 public static function getUserOrderDeta
阅读全文
posted @ 2024-02-01 10:41 consideration
阅读(35)
评论(0)
推荐(0)
下一页
公告