摘要: composer install - 如有 composer.lock 文件,直接安装,否则从 composer.json 安装最新扩展包和依赖; 阅读全文
posted @ 2023-05-30 14:17 火鸟网络 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 第一范式: 有唯一主键,如ID之类的,每行主键ID不能出现重复值,每个列只有一个值. 1)有主关键字 2)主键不能为空, 3)主键不能重复, 4)字段不可以再分 第二范式: 在有主键和候选键的情况下,表的值完全依赖主键,独立于候选键属性,如(产品ID跟产品标题,产品价格有关,可以在该表独立决定) 如 阅读全文
posted @ 2023-03-29 15:35 火鸟网络 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 假如请的URL是 /info/hello?key=name "url": ctx.Request.URL. 显示一个对象 "uri": ctx.Request.RequestURI, 显示是的全路径 /info/hello?key=name "path": ctx.Request.URL.Path, 阅读全文
posted @ 2023-03-12 19:07 火鸟网络 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 如果用fpm的情况下项目运行目录一致,同时注意nginx.conf 的配置,自带的要换下 location ~ \.php$ { fastcgi_pass np-php73-1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME 阅读全文
posted @ 2023-02-17 10:18 火鸟网络 阅读(17) 评论(0) 推荐(0) 编辑
摘要: t0 := template.New("root") t0.New("header").Parse("header") t0.New("footer").Parse("f0") t1 := template.New("") t1.Parse("footer") t0.AddParseTree("fo 阅读全文
posted @ 2023-01-13 10:44 火鸟网络 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 例如想vue在account 目录运行,那么 设置base_url为 /account/ history 模式 history: createWebHistory(import.meta.env.BASE_URL) routers 里面的路径就不必要 为 /account/home, 只需要 /ho 阅读全文
posted @ 2022-03-05 09:20 火鸟网络 阅读(924) 评论(0) 推荐(0) 编辑
摘要: bufio,是golang层的缓冲区,io层,是电脑系统对接硬盘的操作, bytes.Buffer 是一个可写可读的容器 io.Reader 和 io.Writer 是接口,把对应的对象传入才可以操作具体方法! 阅读全文
posted @ 2020-12-04 17:36 火鸟网络 阅读(811) 评论(0) 推荐(0) 编辑
摘要: 首先安装插件 pip install pycryptodome 下面代码 import binascii import struct import base64 import json import os from Crypto.Cipher import AES def dump(file_pat 阅读全文
posted @ 2020-08-12 16:28 火鸟网络 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 这里只放表格和一个控件基本属性 grid(**options) 属性-- 下方表格详细列举了各个选项的具体含义和用法: 选项 含义column 1. 指定组件插入的列(0 表示第 1 列)2. 默认值是 0columnspan 指定用多少列(跨列)显示该组件in_ 1. 将该组件放到该选项指定的组件 阅读全文
posted @ 2019-12-24 18:02 火鸟网络 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: 出错NotSupportedException in AbstractEncoder.php line 151: Encodingformat (tmp) is not supported. 这个只是在windows中会出现,只需要在下面代码添加一个 case 'tmp': 即可 case 'jpg 阅读全文
posted @ 2019-12-13 15:22 火鸟网络 阅读(1436) 评论(0) 推荐(0) 编辑