HTML / CSS 笔记
资料: 慕课网 - 系统讲解 CSS, 工作应用 + 面试一步搞定 极客时间 - 重学前端 MDN - HTML 基础 World Wide Web Consortium (W3C) HTML <!DOCTYPE html> <html> <head> ... </head> <body> ... </body> </html> 常见元素 例子 出现在 head 中, 不会在页面...
资料: 慕课网 - 系统讲解 CSS, 工作应用 + 面试一步搞定 极客时间 - 重学前端 MDN - HTML 基础 World Wide Web Consortium (W3C) HTML <!DOCTYPE html> <html> <head> ... </head> <body> ... </body> </html> 常见元素 例子 出现在 head 中, 不会在页面...
acpi 获取电池电量 acpi Battery 0: Discharging, 43%, 03:27:41 remaining cd 返回之前的目录 cd - cp 显示复制的进度 (复制大文件或者文件夹时) cp -v chmod 使某个文件变为可执行文件 chmod u+x <文件名&...
Hooks 是 React 实现组件逻辑的重要方式, 可以用来操作 state, 定义副作用, 更支持开发者自定义 Hooks. React 对 UI 的理想模型是 UI=f(state), 其中 UI 是视图, state 是应用状态, f 则是渲染过程....
原型 对象 (object) 和实例 (instance) 对象是一个具有多种属性的内容结构 实例是类的具象化产品,可以使用 new 运算符在原型 (prototype) 基础上新建一个实例 function doSomething() {} var doSomething = function () {}; var doSomeInstancing = new...
路由 react 前端路由的本质是路径和组件的一一对应关系, 即不同的 path 对应不同的 component, 访问不同路径时渲染对应的组件. 安装 npm install --save react-router-dom 快速使用 引入 createBrowserRouter, RouterProvider createBrowserRouter: 创建路由实...
只记录软件安装与简单配置 linux 安装 ubuntu server https://iso.mirrors.ustc.edu.cn/ubuntu-releases/22.04.2/ubuntu-22.04.2-live-server-amd64.iso http://ftp.sjtu.edu.cn/ubuntu-cd/22.04.2/ubuntu-22.04.2-live-server-amd64.iso 如果用 Virtual Box 安装完后, 克隆出一个测试机器 (假设叫 ubuntu-test) sudo hostnamectl set-hostname ubuntu-test sudo rm -f /etc/machine-id sudo dbus-uuidgen --ensure=/etc/machine-id reboot 安装 linux mint TODO 解决 windows / linux 双系统时间...
问题: 创建容器失败 Error response from daemon: driver failed programming external connectivity on endpoint sdwan_n60_u8_s161 (4672a1a28605479c6cb8a47f8d74dec73ed220cd5d38278bc7cf78706377f68f): Error starting userland proxy:. 问题复现 只使用 10 个端口时候可以启动容器成功, 当使用 100 个端口时候就启动失败.. 问题原因猜测...
例子 1 可以把 defer ... 分成三部分: 调用 defer, 计算函数的参数 执行 defer, 把函数推入栈 在 return 或者 panic 之后, 执行栈中的函数 例子: func test() (x int) { defer func(n int) { fmt.Printf("in defer x as parameter: x = %d\n", n) fmt.Printf("in...