摘要: 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 不吃肉的羊 阅读(25) 评论(0) 推荐(0) 编辑
摘要: /** *$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 不吃肉的羊 阅读(1210) 评论(0) 推荐(0) 编辑
摘要: 安装 -g 表示全局安装 npm install -g express-generator 查看安装是否成功 express -v 创建项目 express app //app是目录名称 可以根据自己项目自定义 进入 app目录 cd app //进入目录 npm install//安装所有依赖 修 阅读全文
posted @ 2021-12-24 10:46 不吃肉的羊 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 前后端分离开发,域名不一样,涉及到跨域问题 开启中间件即可解决跨域问题找到app\middleware.php,添加一行下面的代码 \think\middleware\AllowCrossDomain::class, 阅读全文
posted @ 2021-08-20 11:43 不吃肉的羊 阅读(256) 评论(0) 推荐(0) 编辑
摘要: <?php /** * @param $filePath //下载文件的路径 * @param int $readBuffer //分段下载 每次下载的字节数 默认1024bytes * @param array $allowExt //允许下载的文件类型 * @return void */ fun 阅读全文
posted @ 2021-08-13 09:01 不吃肉的羊 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 官网:https://chenxuan1993.gitee.io/component-document/index_prod#/component/seamless-default 下载: 链接:https://pan.baidu.com/s/1VjcwhVpUFAlHFQfFgr-iWg 提取码: 阅读全文
posted @ 2021-07-23 11:08 不吃肉的羊 阅读(707) 评论(0) 推荐(0) 编辑
摘要: main: student: 阅读全文
posted @ 2021-06-13 13:25 不吃肉的羊 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 基础: 细节: 景区题目练习: 立方体练习: 阅读全文
posted @ 2021-06-13 13:24 不吃肉的羊 阅读(31) 评论(0) 推荐(0) 编辑
摘要: package main import ( "encoding/json" //序列化用到的包 "fmt" ) // Master 结构体序列化 因为结构体需要让其他包访问所以首字母都是大写 type Master struct { Name string `json:"name"` //就需要用` 阅读全文
posted @ 2021-05-31 20:37 不吃肉的羊 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 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 不吃肉的羊 阅读(432) 评论(0) 推荐(0) 编辑