Dev
搜索

Dev

php basename pathinfo 中文错误
发表于2021-03-11|php
123function get_basename($filename){ return preg_replace('/^.+[\\\\\\/]/', '', $filename);}
私域营销 运营 程序规划
发表于2021-03-11|php
管理员注册|11|22||ddd|ddd|
docker swarm 多个集群 网络互通 使用外部网络
发表于2021-03-11|docker
只要声明使用外部网络即可 第一个集群网络设为可以外部连接12345networks: backend: # 网络可以被外部连接 attachable: true driver: overlay 第二个网络设置外使用外部网络1234networks: app_backend: # 使用外部网络 external: true 注意:docker swarm会给网络加上集群名字前缀,使用外部网络时候需要全称
npm 速度慢
发表于2021-03-10|others
1npm install npm --registry=https://registry.npmmirror.com/
js 算不准 问题
发表于2021-03-10|js
引入bignumber.jshttps://github.com/MikeMcl/bignumber.js 计算 12345678function plus(arr){ var res = BigNumber(0); for(var i in arr){ var j = arr[i] res = res.plus(j) } return res.toFixed()}
专业拓展阅读
发表于2021-03-08|others
数据结构 数据结构 C语言版 严蔚敏 算法图解 计算机网络计算机组成原理重要内容 离散数学 数据结构与算法 编译原理 综合内容电子技术、离散数学、程序设计、数据结构、操作系统、计算机组成原理、微机系统、计算机系统结构、编译原理、计算机网络、数据库系统、软件工程、人工智能、计算机图形学、数字图像处理、计算机通讯原理、多媒体信息处理技术、数字信号处理、计算机控制、网络计算、算法设计与分析、信息安全、应用密码学基础、信息对抗、移动计算、数论与有限域基础、人机界面设计、面向对象程序设计
laravel auth 多表认证
发表于2021-03-05|laravel
guards修改修改config/auth.php,在guards中增加所需内容,例如 123456789101112'guards' => [ 'admin' => [ 'driver' => 'jwt', 'provider' => 'admins', ], 'user' => [ 'driver' => 'jwt', 'provider' => 'users', 'hash' => false, ],], 增加auth中相应providers1234567891011'providers' => [ 'users' => [ ...
腾讯云 镜像 软件源
发表于2021-03-04|others
地址 支持内网地址 https://mirrors.cloud.tencent.com/ ubuntu https://mirrors.cloud.tencent.com/help/ubuntu.html 1234516wget -O /etc/apt/sources.list http://mirrors.cloud.tencent.com/repo/ubuntu16_sources.list18wget -O /etc/apt/sources.list http://mirrors.cloud.tencent.com/repo/ubuntu18_sources.list
laravel 记录 sql
发表于2021-03-03|php
12345678910111213141516// 开启记录\Illuminate\Support\Facades\DB::connection()->enableQueryLog();// 打印记录$bindings = \Illuminate\Support\Facades\DB::getQueryLog();$data = [];foreach ($bindings as $k => $b) { $bi = $b['bindings']; $bi = array_map(function ($a) { return '\'' . $a . '\''; }, $bi); $sql = str_replace('?', '%s', $b['query']); $sql2 = sprintf($sql, ...$bi); $data[$k] = $sq...
golang defer return 特性 实例
发表于2021-03-02|golang
123456789101112131415161718192021package mainimport "fmt"func calc(index string, a, b int) int { ret := a + b fmt.Println(index, a, b, ret) return ret}func main() { a := 1 b := 2 defer calc("1", a, calc("10", a, b)) a = 0 defer calc("2", a, calc("20", a, b)) b = 1} defer在定义的时候会计算好调用函数的参数,所以会优先输出10、20这两个参数,之后就是根据定义的顺序倒序执行。 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556...
1…202122…102
avatar
developer
AI相伴的开发者博客
文章
1017
标签
717
分类
33
Follow Me
公告
This is my Blog
最新文章
flutter getx使用记录2026-03-01
统计代码行数2026-02-27
php easywechat 6.x 微信支付 手动解密2026-02-25
php 反引号 执行shell脚本2026-02-25
mysql使用记录2026-02-19
分类
  • apicloud3
  • bootstrap8
  • cocos2d-js5
  • createjs17
  • day45
  • docker16
  • egret14
  • flash2x2
标签
接口 $wpdb js动画 微信分享定制注意事项 类型转换 issuer python环境 specified 删除失败 unable 会展行业 并携带cookie __call 手机抓包 汉字说明 读取 api go 备案 serverless 编译 协程 ts 转发 tp5 nfs 开发 查看 自建vpn Supervisor user 乱码 file event vscode Post Formats Anaconda 笔试题 display family
归档
  • 三月 2026 1
  • 二月 2026 5
  • 一月 2026 3
  • 十二月 2025 5
  • 十一月 2025 2
  • 十月 2025 5
  • 九月 2025 5
  • 八月 2025 2
网站信息
文章数目 :
1017
最后更新时间 :
© 2025 - 2026 By developer框架 Hexo 8.1.1|主题 Butterfly 5.5.4
搜索
数据加载中