摘要: 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 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(234) 评论(0) 推荐(0) 编辑
摘要: React Store:提供的方法{ store.dispatch() store.subscribe(() => { this.forceUpdate(); // this.setState({}); }); store.getState() } // import { createStore, 阅读全文
posted @ 2020-01-12 10:34 focus_yaya 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1,Context:不需要在任何组件间添加props方法,可以任意之间的组件树进行 const Context = React.createContext(); const Provider = Context.Provider; //提供者 const Consumer = Context.Con 阅读全文
posted @ 2020-01-11 18:56 focus_yaya 阅读(662) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(634) 评论(0) 推荐(0) 编辑
摘要: // https://www.sass.hk/guide/// Sass是基于Ruby的,是在服务器端处理的。/*! @author:xuping,即使是压缩模式的的编译,也会保留这行注释*//* comment:会保留到编译后的文件。 */ // comment,只保留在SASS源文件中,编译后被 阅读全文
posted @ 2019-11-07 17:25 focus_yaya 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 初始化 Data,props,event监听 beforCreated,Created 挂载 执行编译,首次渲染、创建和追加过程 编译 编译模块分为三个阶段:parse、optimize、generate 数据响应式 渲染函数执行时会触发getter进行依赖收集,将来数据变化时会触发setter进行 阅读全文
posted @ 2019-11-05 19:12 focus_yaya 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Vuex数据管理 Vuex 是一个专为 Vue.js 应用开发的状态管理模式,集中式存储管理应用所有组件的状态。 整合vuex vue add vuex 核心概念 state 状态、数据mutations 更改状态的函数actions 异步操作 store 包含以上概念的容器 状态和状态变更 sta 阅读全文
posted @ 2019-11-05 19:11 focus_yaya 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 组件化 组件化是vue的核心思想,它能提高开发效率,方便重复使用,简化调试步骤,提升整个项目的可维护性,便于多人协同开发 组件通信 父组件 => 子组件: 属性props 特性$attrs 引用refs // child:并未在props中声明foo<p>{{$attrs.foo}}</p> } 子 阅读全文
posted @ 2019-11-05 19:01 focus_yaya 阅读(634) 评论(0) 推荐(0) 编辑