上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: //打包go build + 名字 go build cs.go//运行go run cs.go //格式化代码(不会改变,只是查看) gofmt cs.go //格式化代码并应用 ofmt -w cs.go 阅读全文
posted @ 2024-03-01 09:59 祈愿仙帝 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 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 祈愿仙帝 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 安装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 祈愿仙帝 阅读(13) 评论(0) 推荐(0) 编辑
摘要: //查看全部传输信息 halt($_SERVER) //返回上一步(上一个页面) $_SERVER['HTTP_REFERER'] 阅读全文
posted @ 2024-02-22 17:22 祈愿仙帝 阅读(15) 评论(0) 推荐(0) 编辑
摘要: <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 祈愿仙帝 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 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 祈愿仙帝 阅读(1) 评论(0) 推荐(0) 编辑
摘要: //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 祈愿仙帝 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 获取时间SELECT unix_timestamp() //1621909170(当前时间戳:年月日时分秒) SELECT unix_timestamp(CURDATE()) //1621872000(当前时间戳:年月日) SELECT NOW() //2021-05-25 10:20:28(当前时 阅读全文
posted @ 2021-05-25 10:22 祈愿仙帝 阅读(61) 评论(0) 推荐(0) 编辑
摘要: update test set `name`='ni',id=LAST_INSERT_ID(id) where age=20; select LAST_INSERT_ID(); 阅读全文
posted @ 2021-04-21 19:12 祈愿仙帝 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Tcp.php<?php namespace server; use \Swoole\Coroutine\Channel; require_once 'Pdo.php'; class Tcp{ protected $number = 5; //数据包长度 protected $host = '0.0 阅读全文
posted @ 2021-04-21 19:03 祈愿仙帝 阅读(642) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页