11 2018 档案

摘要:Qty. Description Approx. cost each Approx. cost total Sources 14 Breadboard $3 – $8 $36 – $96 面包板 1 22 AWG Solid Tinned-Copper Hook-Up Wire $16.00 $16 阅读全文
posted @ 2018-11-29 14:29 hh9515 阅读(383) 评论(0) 推荐(0)
摘要:资料: https://en.wikipedia.org/wiki/Software_design_pattern https://zh.wikipedia.org/wiki/SOLID_(%E9%9D%A2%E5%90%91%E5%AF%B9%E8%B1%A1%E8%AE%BE%E8%AE%A1) 阅读全文
posted @ 2018-11-29 11:33 hh9515 阅读(140) 评论(0) 推荐(0)
摘要:一英尺 '' foot 30.48cm 一英寸 inch 2.54cm 一、led实验 A led is a light emitting diode Cathode n.阴极 短的一侧是cathode 长的一次是anode 阳极 Breadboard 竖向一列的5个孔是相连接的 给电压过高以后就挂 阅读全文
posted @ 2018-11-28 16:12 hh9515 阅读(883) 评论(0) 推荐(0)
摘要:之前搞了一个 D-Latch,看一下下图是怎么变化的 In D-latch anytime its enabled the input D is going to be output at Q 使用clk 通常情况下clk输入是这样的,很短很短的一下: 这个很短的脉冲是怎么实现的呢? 答案: 可以用 阅读全文
posted @ 2018-11-27 22:30 hh9515 阅读(9499) 评论(0) 推荐(0)
摘要:S-R Latch Put a inverter there: Invertor的组成: tie both of the inputs together加上一个nor gate 就能组成一个invertor 按下就能亮 松开就会灭,这个东东还不是特别有用处,但是可以作为一个启发: S-R Latch 阅读全文
posted @ 2018-11-27 22:23 hh9515 阅读(3359) 评论(0) 推荐(0)
摘要:Digital logic gets really interesting when we connect the output of gates back to an input. The SR latch is one of the most basic memory circuits that 阅读全文
posted @ 2018-11-27 22:20 hh9515 阅读(9967) 评论(0) 推荐(1)
摘要:inverter ‘AND’ GATE OR GATE: XOR GATE: 阅读全文
posted @ 2018-11-27 22:09 hh9515 阅读(819) 评论(0) 推荐(0)
摘要:将硅片分成三部分 掺杂NPN base、emitter、collector 接上电源正负极: 不论哪个方向通电,总有一边会有一大块消耗区,无法通电 再接一个正负极: 就可以通电了 阅读全文
posted @ 2018-11-27 22:07 hh9515 阅读(410) 评论(0) 推荐(0)
摘要:电子带负电, 电子脱离原子核束缚在其它原子中自由移动时,产生的净流动现象称为电流。 硅 S 四个电子 硅不像铜一样是导体 因为没有可以自由移动的电子,这四个电子紧密束缚 玻璃是绝缘体 通过掺入杂质 磷 P 掺入磷后便有了可以自由移动的电子, 杂质硼 只有三个电子 形成空洞 掺入以后: 加电源: 加了 阅读全文
posted @ 2018-11-27 22:04 hh9515 阅读(461) 评论(0) 推荐(0)
摘要:https://developer.mozilla.org/en-US/docs/Web/CSS/vertical-align http://phrogz.net/css/vertical-align/index.html https://zhuanlan.zhihu.com/p/28626505 阅读全文
posted @ 2018-11-26 13:31 hh9515 阅读(319) 评论(0) 推荐(0)
摘要:程序员日常要经常查阅英文的api文档等资料,所以对英语能力还是有一定要求的 记得大学的时候好像看过一部电影,电影的名字不记得了 内容是一个小女孩参加那种猜单词的比赛, 根据给出的单词名猜单词的意思,最后通过努力获奖的故事。[1] 当时没有怎么思考这个电影, 其实仔细回头想想 同样作为语言,英语和汉语 阅读全文
posted @ 2018-11-25 19:30 hh9515 阅读(432) 评论(0) 推荐(0)
摘要:资料:https://www.cnblogs.com/hhhyaaon/p/5863408.html 感觉很棒,记录一下 阅读全文
posted @ 2018-11-21 01:22 hh9515 阅读(138) 评论(0) 推荐(0)
摘要:https://wanago.io/2018/04/23/demystifying-generators-implementing-async-await/ 阅读全文
posted @ 2018-11-20 02:27 hh9515 阅读(247) 评论(0) 推荐(0)
摘要:个人总结: 讲一下bindActionCreators这个API, bindActionCreators是要结合mapDispatchToProps来使用的。 mapDispatchToProps函数接收一个函数,这个函数返回一个对象,对象中键是action的名字,值是进行dispatch处理的函数 阅读全文
posted @ 2018-11-18 23:35 hh9515 阅读(1485) 评论(0) 推荐(0)
摘要:为什么要用这种方法呢? 答:因为, 只用typeof的话会有这种操作。 阅读全文
posted @ 2018-11-15 15:29 hh9515 阅读(154) 评论(0) 推荐(0)
摘要:1.回顾 使用gcc编译代码 gcc hello.c -o hello windows下编译代码 C语言编译步骤: 预处理(头文件展开,干掉注释) gcc -E hello.c -o hello.i 编译 (生成汇编代码) gcc -S hello.i -o hello.s 汇编 (生成目标代码) 阅读全文
posted @ 2018-11-15 00:51 hh9515 阅读(540) 评论(0) 推荐(0)
摘要:图片转载自网络 第一张图是小程序前端需要做的 第二张图是小程序整体流程 阅读全文
posted @ 2018-11-14 20:24 hh9515 阅读(116) 评论(0) 推荐(0)
摘要:1.setState(obj) 只能浅merge obj,对于复杂对象结构的不行 比如: this.state = { data:{ idx:1 } } this.setState({data:{ idx:this.state.data.idx+1 }}) // 这样不行 //正常情况: this. 阅读全文
posted @ 2018-11-14 10:41 hh9515 阅读(445) 评论(0) 推荐(0)
摘要:一个div中的两个span标签为例。我们将两个div内的两个span设为display:inline-block;width:50%;,会发现两个span元素并没有在同一行,这就是源码中的空白导致的。 示例图与代码如下: HTML: <div class="Resolve"> <span>左侧行内元 阅读全文
posted @ 2018-11-12 20:05 hh9515 阅读(1512) 评论(0) 推荐(0)
摘要:encodeURIComponent encodeURI escape (废弃) 目的:这三个函数的作用都是让一段字符串在所有电脑(所有国家区域语言)上可读。 escape属性已经 废弃,不需要关心 encodeURI encodeURIComponent 下面这段转载自网络,很好用: encode 阅读全文
posted @ 2018-11-12 17:27 hh9515 阅读(151) 评论(0) 推荐(0)
摘要:个人总结: 问: 请给我讲一下React中的事件处理为什么要bind this? 答: 好的,比如说我写了一个类组件,有个onClick属性 ,onClick={ this.fun },如果不bind肯定是不行的,下面讲一下为什么要bind this: 首先我们知道React是通过创建虚拟DOM 然 阅读全文
posted @ 2018-11-11 23:27 hh9515 阅读(4301) 评论(2) 推荐(2)
摘要:1 UI组件与容器组件的拆分 UI组件(傻瓜组件):只负责页面显示,没有任何逻辑 容器组件(聪明组件):并不去管UI到底长成什么样,关注的是整个业务逻辑 2 无状态组件 一个普通的函数就是无状态组件 开销比较低 而class..extends..要执行一些生命周期函数 结论:当定义一个UI组件 没有 阅读全文
posted @ 2018-11-11 20:16 hh9515 阅读(222) 评论(0) 推荐(0)
摘要:1 Redux概念简述 flux推出的时候有一些缺点。比如store可以存在多个,不是特别好用 于是逐渐进化为了redux。 2 Redux的工作流程 拿借书作举例: action creators是”我要借书”这句话 store是图书管理员 reducer是小手册 查询到这本书在哪 3 使用ant 阅读全文
posted @ 2018-11-11 20:13 hh9515 阅读(185) 评论(0) 推荐(0)
摘要:1. React developertools安装及使用 2. PropTypes与DefaultProps 讲一下PropTypes, 先拿TodoItem来说: 从几种类型中选: 3 props state 与 render函数的关系 页面是render函数渲染出来的 让props或者state 阅读全文
posted @ 2018-11-11 20:10 hh9515 阅读(211) 评论(0) 推荐(0)
摘要:3-1 使用React编写TodoList功能 import { Fragment} from ‘react’ Fragment是占位符 用于替代最外层div元素, 防止生成的元素会有两层div嵌套这种情况出现 (图片中这里rootdiv 下面就没有多余的那一层div了) 3-2 react中的事件 阅读全文
posted @ 2018-11-11 20:05 hh9515 阅读(228) 评论(0) 推荐(0)
摘要:React简介 2-1: React v16 (React Fiber) React比Vue更灵活 Vue更简单 2-2 开发环境搭建 如何开始:(两种方式) 1.传统方式script标签引入.js文件来使用React 2.使用构建系统 2-3 create-react-app 使用create-r 阅读全文
posted @ 2018-11-11 20:01 hh9515 阅读(136) 评论(0) 推荐(0)
摘要:新公司的技术栈是React,虽然之前对react大概过了一遍,但是自己没有实际落地过项目 再学习一遍react: 一、react全家桶 ·create-react-app ·组件化思维 ·JSX ·开发调试工具 ·虚拟DOM ·生命周期 ·React-transition-group ·Redux 阅读全文
posted @ 2018-11-09 06:16 hh9515 阅读(180) 评论(0) 推荐(0)
摘要:结论:把runtime部分的代码抽离出来单独打包 https://developers.google.com/web/fundamentals/performance/webpack/use-long-term-caching 阅读全文
posted @ 2018-11-08 01:03 hh9515 阅读(3322) 评论(0) 推荐(0)
摘要:说BFC: BFC是css中定义的规范: BFC(Block Formatting Context) 块级格式化上下文,指的是页面布局中的一块区域,它拥有自己的渲染规则,决定自己的子元素如何布局,和其他元素的关系和作用。 只要元素满足下面任一条件即可触发 BFC 特性: 1.body根元素 2.fl 阅读全文
posted @ 2018-11-01 03:35 hh9515 阅读(137) 评论(0) 推荐(0)