自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 mysql decimal类型设置默认值

【代码】mysql decimal类型设置默认值。

2023-06-19 10:38:15 555

原创 windows环境下docker仓库的使用

docker 仓库的使用

2023-01-07 14:05:00 321

原创 微信使用精准位置 wx.getLocation步骤

wx.getLocation

2022-08-24 16:00:03 1428

原创 获取两个时间段的交集

时间段a 开始a1 结束a2时间段b 开始b1 结束b2时间段a与时间段b的交集出现在a2>b1 && a1<b2 的时候

2021-10-03 22:29:56 351

原创 left join 一对多时数据合并处理

function list(){ $arr = [ [ 'id' => 1, 'name' => '张三', 'title' => '深圳', ], [ 'id' => 1, 'name' => '张三', ...

2021-10-02 04:05:03 1322

原创 git常用命令

git常用命令git提交代码:git add .git commit -m "提交"git push origin mastergit强制覆盖本地命令(单条执行):git fetch --all && git reset --hard origin/master && git pullgit清除本地账号密码 方式1、2方式1.git config --global credential.helper wincred方式2.git config -

2021-09-19 17:08:02 77

原创 php 获取某一个指定时间点(时间戳)的上周周一的起始时间戳(00:00)

PHP获取某一个指定时间点(时间戳)的上周周一的起始时间戳(00:00)//获取某一个指定时间点(时间戳)的上周周一的起始时间戳(00:00)$start_time = strtotime('monday last week', $time);

2021-09-11 16:52:13 468

原创 PHP 抓取静态页面,解决文件编码问题 UTF-8,GBK

public function test() {// $url = 'http://finance.people.com.cn/n1/2021/0824/c1004-32204729.html'; //gpk// $url = 'https://sz.oeeee.com/html/202109/07/1133661.html';// $url = 'http://opinion.people.com.cn/GB/8213/420650/in...

2021-09-08 14:05:44 210

原创 php检测文件内容编码的方法

<?phpheader("Content-type: text/html; charset=utf-8");/** * 获取内容的编码 * @param string $str */function get_encoding($str = "") { $encodings = array ( 'ASCII', 'UTF-8', 'GBK' ); foreach ( $encodings as $encoding

2021-09-08 13:42:43 480

原创 apache、nginx伪静态

伪静态apache:<IfModule mod_rewrite.c>RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]</IfModule>2.nginx: location / { index index.html ind

2021-09-06 09:25:10 57

原创 PHP 批量生成名字和头像插入数据库

<?phpnamespace app\api\controller;use think\facade\Db;class Test{ public function sql() { $length = 1000; $data = []; for ($i = 0; $i < $length; $i++) { $phone = '1' . mt_rand(1000000000, 9999999

2021-08-29 22:03:13 566

原创 PHP后台守护进程的实现方式(Linux环境)

1.创建 test.php 文件<?phpwhile (true) { try { $content=mt_rand(1,200)."\n"; $file='./test.txt'; if($f = file_put_contents($file, $content,FILE_APPEND)){ }// echo file_get_contents($file); } catch (\Excepti

2021-08-16 01:20:25 442

原创 php无限分类

php无限分类<?php// 转载:: https://www.cnblogs.com/xuey/p/8629487.html$array = array( array('id' => 1, 'pid' => 0, 'n' => '河北省'), array('id' => 2, 'pid' => 0, 'n' => '北京市'),...

2019-11-08 05:15:31 109

原创 select 切换选中

select 切换选中 关键词 prop(),不能用attr()html 部分 <div class="form-group"> <label class="col-lg-2 control-label" style="width: 110px;height: 34px;line-height: 34px...

2019-07-01 18:02:55 639

转载 require.js快速入门

地址:https://www.cnblogs.com/xiaoxiaossrs/p/7283502.html

2019-06-13 10:32:07 99

转载 Moment函数上周/上月/今年/去年等时间开始和结束数组

Moment() JS注意区分大小写, moment() //时间变更 require(["daterangepicker"], function(){ $(function(){ $(".daterange.daterange-date").each(function(){ var elm =...

2019-06-13 09:46:01 3498

转载 查询表1的id 不已存在表2里,

表字段过滤查询表1的id 不已存在表2里, $list=pdo_fetchall('SELECT id,tname FROM '.tablename($this->table_teachers) . "where id not in (select tid from ims_wx_school_gz_settlement) AND weid = '{$weid}' AND sc...

2019-06-10 15:16:35 142

转载 PHP 数组与Object的转换

//调用这个函数,将其幻化为数组,然后取出对应值function object_array($array){ if(is_object($array)) { $array = (array)$array; } if(is_array($array)) { foreach($array as $key=>$value) { $array[$key] = object_array($value); } } return $a

2019-05-01 17:46:26 20254

空空如也

空空如也

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

TA关注的人

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