会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不吃肉的羊
博客园
首页
新随笔
联系
订阅
管理
2022年10月10日
抽奖
摘要: 1 <!DOCTYPE html> 2 <html lang="en"> 3 4 <head> 5 <meta charset="UTF-8"> 6 <meta http-equiv="X-UA-Compatible" content="IE=edge"> 7 <meta name="viewpor
阅读全文
posted @ 2022-10-10 17:27 不吃肉的羊
阅读(38)
评论(0)
推荐(0)
2022年3月25日
PHP获取IP归属地
摘要: /** *$ip string 必传 *获取ip归属地 *demo 四川省成都市 电信 */ function get_ip_city($ip) { $ch = curl_init(); $url = 'https://whois.pconline.com.cn/ipJson.jsp?ip=' .
阅读全文
posted @ 2022-03-25 08:52 不吃肉的羊
阅读(1247)
评论(0)
推荐(0)
2021年12月24日
Node.js-----Express安装初始化
摘要: 安装 -g 表示全局安装 npm install -g express-generator 查看安装是否成功 express -v 创建项目 express app //app是目录名称 可以根据自己项目自定义 进入 app目录 cd app //进入目录 npm install//安装所有依赖 修
阅读全文
posted @ 2021-12-24 10:46 不吃肉的羊
阅读(63)
评论(0)
推荐(0)
2021年8月20日
TP6跨域
摘要: 前后端分离开发,域名不一样,涉及到跨域问题 开启中间件即可解决跨域问题找到app\middleware.php,添加一行下面的代码 \think\middleware\AllowCrossDomain::class,
阅读全文
posted @ 2021-08-20 11:43 不吃肉的羊
阅读(286)
评论(0)
推荐(0)
2021年8月13日
PHP文件上传于下载
摘要: <?php /** * @param $filePath //下载文件的路径 * @param int $readBuffer //分段下载 每次下载的字节数 默认1024bytes * @param array $allowExt //允许下载的文件类型 * @return void */ fun
阅读全文
posted @ 2021-08-13 09:01 不吃肉的羊
阅读(38)
评论(0)
推荐(0)
2021年7月23日
VUE vue-seamless-scroll 无缝滚动
摘要: 官网:https://chenxuan1993.gitee.io/component-document/index_prod#/component/seamless-default 下载: 链接:https://pan.baidu.com/s/1VjcwhVpUFAlHFQfFgr-iWg 提取码:
阅读全文
posted @ 2021-07-23 11:08 不吃肉的羊
阅读(775)
评论(0)
推荐(0)
2021年6月13日
GO 面向对象工厂模式
摘要: main: student:
阅读全文
posted @ 2021-06-13 13:25 不吃肉的羊
阅读(44)
评论(0)
推荐(0)
GO面向对象方法
摘要: 基础: 细节: 景区题目练习: 立方体练习:
阅读全文
posted @ 2021-06-13 13:24 不吃肉的羊
阅读(44)
评论(0)
推荐(0)
2021年5月31日
Go 结构体序列化
摘要: package main import ( "encoding/json" //序列化用到的包 "fmt" ) // Master 结构体序列化 因为结构体需要让其他包访问所以首字母都是大写 type Master struct { Name string `json:"name"` //就需要用`
阅读全文
posted @ 2021-05-31 20:37 不吃肉的羊
阅读(308)
评论(0)
推荐(0)
GO 结构体嵌套结构体
摘要: package mainimport "fmt"// Point 结构体type Point struct { x int y int}// Rect 结构体type Rect struct { leftUp,rightDown Point}func main() { r1 :=Rect{ left
阅读全文
posted @ 2021-05-31 20:33 不吃肉的羊
阅读(444)
评论(0)
推荐(0)
下一页
公告