会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
梦。
编写简略,请多见谅。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
10
下一页
2024年3月3日
go 函数
摘要: //字符串的使用 str := "golang你好" //字符串长度 fmt.Println(len(str)) //循环输出 for k, v := range str { fmt.Printf("索引为:%d,具体值为:%c \n", k, v) } //以切片循环展示 r := []rune(
阅读全文
posted @ 2024-03-03 21:45 祈愿仙帝
阅读(21)
评论(0)
推荐(0)
2024年3月1日
go 命令
摘要: //打包go build + 名字 go build cs.go//运行go run cs.go //格式化代码(不会改变,只是查看) gofmt cs.go //格式化代码并应用 ofmt -w cs.go
阅读全文
posted @ 2024-03-01 09:59 祈愿仙帝
阅读(5)
评论(0)
推荐(0)
2024年2月29日
go
摘要: go安装go https://go.dev/dl/ go 安装bee 设置代理地址: https://goproxy.cn go env -w GOPROXY=https://goproxy.cn 查看bee版本 bee -version 查看不到: command not found: bee 发
阅读全文
posted @ 2024-02-29 17:56 祈愿仙帝
阅读(22)
评论(0)
推荐(0)
2024年2月25日
mac M2
摘要: 安装brew /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 选择2:清华大学源即可,输入y 安装成功 但还需要重启终端 或者 运行 source /Users/meng/.
阅读全文
posted @ 2024-02-25 13:26 祈愿仙帝
阅读(35)
评论(0)
推荐(0)
2024年2月22日
tp6框架常用函数
摘要: //查看全部传输信息 halt($_SERVER) //返回上一步(上一个页面) $_SERVER['HTTP_REFERER']
阅读全文
posted @ 2024-02-22 17:22 祈愿仙帝
阅读(27)
评论(0)
推荐(0)
2024年2月10日
要使用jQuery来判断设备类型(iOS、Android或Web)并进行相应的操作
摘要: <script> // 获取User Agent字符串 var userAgent = navigator.userAgent; if (/iPhone|iPad|iPod/i.test(userAgent)) { // iOS设备 console.log("这是iOS设备"); } else if
阅读全文
posted @ 2024-02-10 09:58 祈愿仙帝
阅读(115)
评论(0)
推荐(0)
2024年2月9日
tp6
摘要: tp6 think-swoole企业最佳实践手册 https://www.kancloud.cn/zhangqi/think-swoole/1730103 安装视图扩展 composer require topthink/think-view 安装swoole扩展 composer require
阅读全文
posted @ 2024-02-09 14:06 祈愿仙帝
阅读(23)
评论(0)
推荐(0)
2021年6月1日
swoole 安装及双协议使用(数据库采用pdo连接池)
摘要: //swoole 安装 /* * git clone https://github.com/swoole/swoole-src.git * * cd swoole-src * * phpize * * ./configure --with-php-config=/www/server/php/71/
阅读全文
posted @ 2021-06-01 19:07 祈愿仙帝
阅读(308)
评论(0)
推荐(0)
2021年5月25日
sql
摘要: 获取时间SELECT unix_timestamp() //1621909170(当前时间戳:年月日时分秒) SELECT unix_timestamp(CURDATE()) //1621872000(当前时间戳:年月日) SELECT NOW() //2021-05-25 10:20:28(当前时
阅读全文
posted @ 2021-05-25 10:22 祈愿仙帝
阅读(86)
评论(0)
推荐(0)
2021年4月21日
php 快速获取原生 SQL 修改的 ID
摘要: update test set `name`='ni',id=LAST_INSERT_ID(id) where age=20; select LAST_INSERT_ID();
阅读全文
posted @ 2021-04-21 19:12 祈愿仙帝
阅读(95)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
10
下一页
公告