会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Code change my mind
You have to believe in yourself. That's the secret of success.
博客园
首页
新随笔
联系
管理
订阅
1
2
3
4
5
···
11
下一页
2020年6月11日
zhs 遇到的坑,自动补齐插件,还有git命令
摘要: chsh: no changes made 错误解决方案 前提纪要:1、我们都知道mac有默认bash工具,在下载zsh后,把一切都配置好后,输入切换命令:chsh - s /bin/zsh ,总是提示 chsh: no changes made错误。那我我们尝试用sudo chsh -s /bin
阅读全文
posted @ 2020-06-11 19:06 focus_yaya
阅读(608)
评论(0)
推荐(0)
2020年5月21日
rebase的理解
摘要: https://www.codercto.com/a/45325.html 1,切换自己的开发分之,将自己代码合并到develop, git rebase develop 2,该正好自己冲突,1,git add src,git rebase --continue
阅读全文
posted @ 2020-05-21 21:08 focus_yaya
阅读(258)
评论(0)
推荐(0)
2020年5月7日
前端面试题总结
摘要: css 1,css 布局 2,css模型 3,css动画 4,BFC 5,css实现三角形、梯形、圆形 6,css的性能优化 js 1,实现jsonp function handleResponse(response){ } var script=document.createElement("sc
阅读全文
posted @ 2020-05-07 19:55 focus_yaya
阅读(293)
评论(0)
推荐(0)
2020年1月12日
redux ,react-redux梳理,以及源码的学习
摘要: React Store:提供的方法{ store.dispatch() store.subscribe(() => { this.forceUpdate(); // this.setState({}); }); store.getState() } // import { createStore,
阅读全文
posted @ 2020-01-12 10:34 focus_yaya
阅读(338)
评论(0)
推荐(0)
2020年1月11日
react--context,高阶组件,hook
摘要: 1,Context:不需要在任何组件间添加props方法,可以任意之间的组件树进行 const Context = React.createContext(); const Provider = Context.Provider; //提供者 const Consumer = Context.Con
阅读全文
posted @ 2020-01-11 18:56 focus_yaya
阅读(674)
评论(0)
推荐(0)
2019年12月2日
react面试题——理解setState(源码object.assign)
摘要: setState是异步的方式 this.setState({ counter:this.state.counter+1 }) console.log(this.state.counter) setState是异步,执行最后一个setState 同步执行的方法,传递函数 1,this.setState
阅读全文
posted @ 2019-12-02 18:03 focus_yaya
阅读(648)
评论(0)
推荐(0)
2019年11月7日
sass和less的对比
摘要: // https://www.sass.hk/guide/// Sass是基于Ruby的,是在服务器端处理的。/*! @author:xuping,即使是压缩模式的的编译,也会保留这行注释*//* comment:会保留到编译后的文件。 */ // comment,只保留在SASS源文件中,编译后被
阅读全文
posted @ 2019-11-07 17:25 focus_yaya
阅读(423)
评论(0)
推荐(0)
2019年11月5日
vue 源码分析
摘要: 初始化 Data,props,event监听 beforCreated,Created 挂载 执行编译,首次渲染、创建和追加过程 编译 编译模块分为三个阶段:parse、optimize、generate 数据响应式 渲染函数执行时会触发getter进行依赖收集,将来数据变化时会触发setter进行
阅读全文
posted @ 2019-11-05 19:12 focus_yaya
阅读(257)
评论(0)
推荐(0)
vue的全家桶
摘要: Vuex数据管理 Vuex 是一个专为 Vue.js 应用开发的状态管理模式,集中式存储管理应用所有组件的状态。 整合vuex vue add vuex 核心概念 state 状态、数据mutations 更改状态的函数actions 异步操作 store 包含以上概念的容器 状态和状态变更 sta
阅读全文
posted @ 2019-11-05 19:11 focus_yaya
阅读(194)
评论(0)
推荐(0)
Vue组件化和路由
摘要: 组件化 组件化是vue的核心思想,它能提高开发效率,方便重复使用,简化调试步骤,提升整个项目的可维护性,便于多人协同开发 组件通信 父组件 => 子组件: 属性props 特性$attrs 引用refs // child:并未在props中声明foo<p>{{$attrs.foo}}</p> } 子
阅读全文
posted @ 2019-11-05 19:01 focus_yaya
阅读(645)
评论(0)
推荐(0)
1
2
3
4
5
···
11
下一页
公告