11 2020 档案

摘要:import Component from "./Component"; import { Form, Button } from "antd"; const onFinish = (values) => { console.log("Success:", values); }; const For 阅读全文
posted @ 2020-11-27 12:11 winyh 阅读(366) 评论(0) 推荐(0) 编辑
摘要:const Component = ({ is, children, ...restProps }) => { const Tag = require("antd")[is]; if (!Tag) return false; return <Tag {...restProps}>{children} 阅读全文
posted @ 2020-11-27 11:33 winyh 阅读(1672) 评论(0) 推荐(0) 编辑
摘要:主键: 1.不能重复、唯一 2.不使用任何业务相关的字段作为主键的基本原则(身份证号、手机号、邮箱地址这些看上去可以唯一的字段,均不可用作主键) 3.自增整数类型、全局唯一GUID类型 外键: 1.关系模型(一对一、一对多、多对多) 索引: 1.提升巨量数据查询效率 2.索引是关系数据库中对某一列或 阅读全文
posted @ 2020-11-20 17:50 winyh 阅读(69) 评论(0) 推荐(0) 编辑
摘要:lsof -i:9090 // 查看端口kill -9 pid // 关闭进程 查看 deploy.sh 脚本产生的进程 ps -aux | grep "deploy.sh"第二列值为PID 阅读全文
posted @ 2020-11-20 15:01 winyh 阅读(1006) 评论(0) 推荐(0) 编辑
摘要:Serverless 是一个更大的范畴,Serverless 不只计算,也包括存储、数据库、中间件等各种服务。Serverless = FaaS(函数即服务) + BaaS(后端即服务)。其中 Serverless 计算一般指 FaaS,即云函数。 云函数和微服务不是取代关系。微服务是一种架构模式, 阅读全文
posted @ 2020-11-16 18:12 winyh 阅读(627) 评论(0) 推荐(0) 编辑
摘要:https://juejin.im/post/6844903978333896718 https://segmentfault.com/a/1190000020093455 https://zhuanlan.zhihu.com/p/54290649 UMD 版本可以通过 <script> 标签直接用 阅读全文
posted @ 2020-11-12 15:06 winyh 阅读(1284) 评论(0) 推荐(0) 编辑
摘要:当我们要获取多个数据的时候, 需要用到切片进行接收多条数据 func selects(db *gorm.DB) { var users []Student1 // 将查询出来的数据放到切片中 db.Find(&users) fmt.Println(users) for i, j := range u 阅读全文
posted @ 2020-11-11 14:30 winyh 阅读(81) 评论(0) 推荐(0) 编辑
摘要:人的全景 论人类不平等的起源和基础 见识 格局 沉思录 社会契约论 态度改变与社会影响 做出好决定 系统之美 人生的智慧 突破现实的困境 曾国藩 被讨厌的勇气 影响力 项塔兰 穷查理宝典 投资最重要的事 阅读全文
posted @ 2020-11-10 17:13 winyh 阅读(92) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示