最新文章 分享技术与生活

React 各个版本特性详解

2026-03-18 18:04   浏览: 3  

React 各个版本特性详解 React 作为前端开发中最流行的库之一,不断迭代更新,为开发者带来了许多新特性和改进。本文将详细介绍 React 各个主要版本的特性和变化。 React 16 16.0 - Fiber 架构 React 16 引入了全新的 Fiber 架构,这是 React 内部核心算法的重大重构。 异步渲染:Fiber 允许 React 中断渲染过程,优先处理...

阅读更多 →

es6新特性

2026-03-18 17:45   浏览: 10  

ES6 新特性详解 1. 块级作用域 let 和 const ES6 引入了 let 和 const 关键字,用于声明块级作用域的变量。 // let 声明的变量只在块级作用域内有效 function test() { if (true) { let x = 10; console.log(x); // 10 } ...

阅读更多 →

nginx配置django

2026-03-18 17:19   浏览: 3  

    location / {      proxy_pass http://localhost:8000; #django 服务      proxy_set_header Host $host;      proxy_set_header X-Real-IP $remote_a...

阅读更多 →

解决.gitignore文件不生效

2026-03-18 16:30   浏览: 7  

把某些目录或文件加入忽略规则,按照上述方法定义后发现并未生效,原因是.gitignore只能忽略那些原来没有被追踪的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。那么解决方法就是先把本地缓存删除(改变成未被追踪状态),然后再提交: git rm -r --cached .git add .git commit -m 'update .gitignore'gi...

阅读更多 →

配置 Git

2026-03-18 16:25   浏览: 1  

配置用户名和邮箱 git config --global user.name "John Doe"git config --global user.email johndoe@example.com

阅读更多 →

pip源

2026-03-18 15:13   浏览: 3  

example:pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple 清华源:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云源:https://mirrors.aliyun.com/pypi/simple 豆瓣源:https://pypi.douban.com/si...

阅读更多 →

npm源

2026-03-18 15:12   浏览: 1  

example:npm install lodash --registry https://registry.npmmirror.com/ 淘宝源:https://registry.npmmirror.com/ 阿里源:https://r.cnpmjs.org/

阅读更多 →

css3新特性

2026-03-16 01:33   浏览: 20  

CSS3 新特性 1. 选择器增强 属性选择器:[attr^=value](以指定值开头)、[attr$=value](以指定值结尾)、[attr*=value](包含指定值) 伪类选择器::nth-child(n)、:nth-of-type(n)、:first-of-type、:last-of-type、:not(selector) 伪元素选择器:::before、::afte...

阅读更多 →

vue2/vue3区别

2026-03-16 01:32   浏览: 14  

Vue 2 vs Vue 3 区别 1. 响应式系统 Vue 2 使用 Object.defineProperty 实现响应式 无法检测对象属性的添加/删除 无法直接检测数组索引和长度变化 需要使用 Vue.set 或 this.$set 手动触发响应式 Vue 3 使用 Proxy 实现响应式 可以检测对象属性的添加/删除 可以检测数组索引和长度...

阅读更多 →
搜索
分类
  • 暂无分类
标签
暂无标签
关于博客
欢迎来到我的博客!这里记录了我的学习笔记和生活感悟。