牛客796502798号
牛客796502798号
全部文章
分类
android(1)
css(17)
Git(1)
javascript(13)
linux(1)
mongodb(1)
node.js(3)
python(1)
react(4)
vue(4)
webpack(1)
前端(12)
小程序(3)
数据结构and算法(1)
程序语言(1)
归档
标签
去牛客网
登录
/
注册
牛客796502798号的博客
全部文章
(共64篇)
let和const 的变量提升
let和const生命虽然看上去是执行到了才会生效,但是实际上,他们还是会被预处理。如果当前作用域内有生命,就无法访问到外部的变量。 const a = 2; if(true){ console.log(a) const a = 1 } 在这段代码中如果if里的a不提升则打印的是a=2,外...
2020-08-24
0
273
vue和react常见生命周期函数的对应关系
1、组件挂载阶段 2、组件更新阶段 3、卸载阶段 react生命周期
2020-08-24
0
283
git拒绝不相关的合并历史记录
git pull origin master --allow-unrelated-histories
2020-08-24
0
358
npm换淘宝镜像
1、安装淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org 2、安装nrm cnpm i -g nrm 3、查看本地镜像源 nrm ls 4、切换镜像源 nrm us...
2020-08-24
0
403
mongodb基本命令
创建数据库 use DATABASE_NAME 查看所有数据库 show dbs
2020-08-24
0
296
await 多级调用不起作用?
本意是先判断 邮箱有没注册 再加密密码 再存储到数据库 代码 router.post("/register", async ctx => { const findResult = await User.find({ email: ctx.req...
2020-08-24
0
457
react动态样式绑定classNam,用es6的模板字符
用es6模板字符串的方式绑定了一个.border样式和一个动态样式.active <View className={`border ${index === this.state.currentIndex ? "active" : null}`} > </V...
2020-08-24
0
807
jsx选择取消按钮
constructor() { super(...arguments) this.state = { selected: 0 } } handleSelectBtn() { let mark = !this.state.selected ...
2020-08-24
0
316
cssbem规范
规范 BEW指 块(block),元素(element),修饰符(modifier)。 __用来连接B和E 。 _用来连接B和M,E和M,如 search__btn_active。 -用来连接含多个单词的B或E或M。 示例 块:例如搜索框块,log的块,菜单块 search块,用sea...
2020-08-24
0
474
js处理异步的几种方式
1、回调函数 封装了异步操作的函数接受一个匿名函数作为参数,当异步操作执行完后调用这个传递进来的匿名函数; function getData(callback){ setTimeout(() => { let name = 'xxx' callback(name) ...
2020-08-24
0
450
首页
上一页
1
2
3
4
5
6
7
下一页
末页