自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 tp5 三行代码实现调用redis底层的方法

tp5使用redis

2022-02-27 21:49:27 409

原创 Thinkphp5.0解决跨域问题

Thinkphp5.0解决跨域问题 在api模块新建behavior目录 在behavior目录下边创建COSR.php类 <?php namespace app\h5\behavior; class CORS { public function appInit(){ header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Methods:*'); hea

2021-11-17 11:23:22 842

原创 MySQL查询小技巧

1.查询指定月的数据 $where = []; if (!empty($this->param['time'])) { $month_start = strtotime($this->param['time']);//指定月份月初时间戳 $month_end = mktime(23, 59, 59, date('m', strtotime($this->param['time']))+1, 00);//指定月份月末时间戳 $where[] = ['leave.create_time'

2021-04-16 14:44:02 134

原创 php使用curl获取有赞商城access_token

public function getAccessToken($data=[]){ $url = 'https://open.youzanyun.com/auth/token'; $data = [ 'client_id' => 'xxxxxxxxxxxxxxx', 'client_secret' => '448bd8f34xxxxxxxxxxxxxxxx', 'authorize...

2020-12-09 10:25:24 499

原创 Nginx隐藏入口文件配置

index index.php index.html index.htm; location / { if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; break; } }

2020-09-28 11:32:58 466

原创 @ 用Jquery实现添加用户表单验证功能

用Jquery实现添加用户(用户注册登录同理)表单验证功能 form表单部分 <!-- onsubmitb表单提交事件把 CheckFrom() 的结果 return 回来 如果是false的话阻止表单提交 --> <form action="" method="post" enctype="multipart/form-data" onsubmit="return Check...

2020-03-27 02:28:55 549

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除