background picture of the home page

Hi,Friend

搭建Github镜像站

操作 申请域名证书 安装NGINX 创建一个配置文件 upstream github { server github.com:443; keepalive 16; } server { listen 80; server_name 您的域名; rewrite

thumbnail of the cover of the post

github 镜像站及下载加速网址

1、提供常用的镜像网址(记住千万别登录账号): https://hub.nuaa.cf/ https://hub.yzuu.cf/ https://hub.njuu.cf/ https://github.com.cnpmjs.org https://hub.fastgit.org 上面的网址是一个

thumbnail of the cover of the post

js删除数组中指定元素的几种方式

一、删除第一个元素 1、shift() 方法用于把数组的第一个元素从其中删除,并返回第一个元素的值。 注意: 此方法改变数组的长度! 提示: 移除数组末尾的元素可以使用 pop() 方法。 let arr = [1,2,3,4,5] arr.shift() // 1 // arr => [2,3,

thumbnail of the cover of the post

react context的三种用法

先看看React官网对于Context的介绍 个人理解转成大白话:Context提供了一个局部的全局作用域,使用Context则无需再手动的逐层传递props。 本文主要介绍3种Context的使用方式: React.createContext提供的Provider和Consumer

thumbnail of the cover of the post

webpack 总结、面试题

1、什么是 webpack?说一下你对 webpack 的理解?webpack的工作原理? webpack 是一种模块打包工具,可以将各类型的资源,例如 img、CSS、JS 等,转译组合为 JS 格式的 bundle 文件。 是一个模块化打包工具,将不同的资源和文件,进行打包,合并在一个文件里。

thumbnail of the cover of the post

vue面试题附答案

1. 谈一谈对 MVVM 的理解? 参考答案: MVVM 是 Model-View-ViewModel 的缩写。MVVM 是一种设计思想。 Model 层代表数据模型,也可以在 Model 中定义数据修改和操作的业务逻辑; View 代表 UI 组件,它负责将数据模型转化成

thumbnail of the cover of the post

vue面试题

一.Vue学习精髓 1.数据驱动 : vue会自动渲染data中的数据, data中的数据变化了,页面会自动变化。 2.vue指令本质 : html标签自定义属性 作用:给html标签拓展功能(给原生html标签加buff) 语法:vue指令 v-指令名="指令值"

thumbnail of the cover of the post