上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 103 下一页
摘要: 核心是数据变化跟踪与UI更新的问题 概念整理: 供业务使用的叫数据; 供UI使用的叫状态; UI的变化能被监听到; 数据的变化能实时反映到UI上; 数据变化—》拦截—〉UI状态重置—》UI更新; UI状态变化—〉数据化状态—》拦截 将UI的状态变量提升为monand变量 设置和订阅; 阅读全文
posted @ 2019-06-27 15:14 zzfx 阅读(351) 评论(0) 推荐(0)
摘要: 概览 组件 使用 React 组件可以将 UI 拆分为独立且复用的代码片段,每部分都可独立维护。你可以通过子类 React.Component 或 React.PureComponent 来定义 React 组件。 React.Component React.PureComponent 如果你不使用 阅读全文
posted @ 2019-06-27 14:37 zzfx 阅读(273) 评论(0) 推荐(0)
摘要: 一、概述 Donovon has created this nice flowchart that explains the new lifecycle of a Hooks component. Comes in handy https://www.bram.us/2019/03/11/react 阅读全文
posted @ 2019-06-27 12:11 zzfx 阅读(560) 评论(0) 推荐(0)
摘要: 将UI组件抽象为状态处理机。分为普通状态和副作用状态。 一、综述 useState:处理函数只改变引用的状态本身;副作用状态:会对引用状态以外的状态和变量进行修改;useReducer:用解藕化的机制进行计算状态维护; 二、useState useState:flux化管理的模块状态(本模块持有)c 阅读全文
posted @ 2019-06-27 11:35 zzfx 阅读(357) 评论(0) 推荐(0)
摘要: UI—html—DOM(tree-structured representation、 manipulate)—Virtual DOM(component) Real DOM强调树状结构的整体;核心是树状结构的维护; Virtual DOM强调的是组件,核心是组件的构建、组合和维护; Real DO 阅读全文
posted @ 2019-06-26 11:47 zzfx 阅读(471) 评论(0) 推荐(0)
摘要: react = Virtual DOM + component + data flow + jsx 核心是Virtual DOM结构的状态维护、渲染机制及UI系统的DOM组织功能; 基于Virtual DOM的视图构建和渲染方式。 入口为index.html; 一、虚拟DOM 基于状态管理的UI组件 阅读全文
posted @ 2019-06-26 11:20 zzfx 阅读(154) 评论(0) 推荐(0)
摘要: 编程语言评价标准 编程语言需要提供足够简单和丰富的概念来表达我们要描述的世界; 并且执行的效率要足够高 Enough of the small talk, how do we go about comparing these two goliaths? In reality this can’t b 阅读全文
posted @ 2019-06-25 19:34 zzfx 阅读(733) 评论(0) 推荐(0)
摘要: 这篇文章的全局观和思路一级棒! The Fairy Tale Cast your mind back to 2010 when users started to demand interactive web applications. Back then the only real solution 阅读全文
posted @ 2019-06-25 19:28 zzfx 阅读(231) 评论(0) 推荐(0)
摘要: In this section, we will discuss some of the features that make React a superior choice for front-end developers. Have a look: Source: http://blog.emb 阅读全文
posted @ 2019-06-25 18:36 zzfx 阅读(517) 评论(0) 推荐(0)
摘要: If you are using React or learning React, you must have heard of the term “Virtual DOM”. Now what is a Virtual DOM, and why does React use it? Real DO 阅读全文
posted @ 2019-06-25 18:34 zzfx 阅读(312) 评论(0) 推荐(0)
摘要: Consider a DOM made of thousands of divs. Remember, we are modern web developers, our app is very SPA! We have lots of methods that handle events - cl 阅读全文
posted @ 2019-06-25 18:26 zzfx 阅读(351) 评论(0) 推荐(0)
摘要: redux是全局状态(数据)的管理机制,局部数据没有意义 阅读全文
posted @ 2019-06-25 16:42 zzfx 阅读(428) 评论(0) 推荐(0)
摘要: 布局描述的术语 阅读全文
posted @ 2019-06-24 22:57 zzfx 阅读(239) 评论(0) 推荐(0)
摘要: 只有物有所值或物超所值的东西才值得投入时间、金钱、精力去获取。 阅读全文
posted @ 2019-06-19 19:34 zzfx 阅读(148) 评论(0) 推荐(0)
摘要: Flutter在iOS上的表现就是一坨屎; 用户体验差到了极点; 目前来说不值得投入大量精力去研究; 了解一下原理可以。 阅读全文
posted @ 2019-06-19 19:13 zzfx 阅读(2946) 评论(0) 推荐(0)
摘要: async/await 和 trycatch/throwable机制类似 阅读全文
posted @ 2019-06-19 15:50 zzfx 阅读(280) 评论(0) 推荐(0)
摘要: Q5. How would you differentiate JDK, JRE, JVM, and JIT?A5. There is no better way to get the big picture than a diagram. JDK, JRE, JVM, and JIT JDK, J 阅读全文
posted @ 2019-06-19 14:35 zzfx 阅读(244) 评论(0) 推荐(0)
摘要: Java JIT(just in time)即时编译器是sun公司采用了hotspot虚拟机取代其开发的classic vm之后引入的一项技术,目的在于提高java程序的性能,改变人们“java比C/C++慢很多”这一尴尬印象。 说起来是编译器,但此编译器与通常说的javac那个编译器不同,它其实是 阅读全文
posted @ 2019-06-19 14:06 zzfx 阅读(1943) 评论(0) 推荐(0)
摘要: 系统(进程、可执行文件)运行时,缺省要素(的查找路径) 环境变量是一个有名称的对象,包含可被其它程序使用的数据。简单的说,它是一个名称和数值对。环境变量的值可以是文件系统上所有执行程序的位置,默认的编辑器,系统本地化设置等。 要求系统运行一个程序而没有告诉它程序所在的完整路径时,系统除了在当前目录下 阅读全文
posted @ 2019-06-18 17:22 zzfx 阅读(155) 评论(0) 推荐(0)
摘要: 使用async/await消除callback hell 通过Future回调中再返回Future的方式虽然能避免层层嵌套,但是还是有一层回调,有没有一种方式能够让我们可以像写同步代码那样来执行异步任务而不使用回调的方式?答案是肯定的,这就要使用async/await了,下面我们先直接看代码,然后再 阅读全文
posted @ 2019-06-18 15:22 zzfx 阅读(432) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 103 下一页