上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 103 下一页
摘要: React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolat 阅读全文
posted @ 2019-06-18 11:27 zzfx 阅读(169) 评论(0) 推荐(0)
摘要: Getting started with react.js: basic concept of React component 1 What is React.js React, or React.js is an open source javascript framework from Face 阅读全文
posted @ 2019-06-18 11:07 zzfx 阅读(171) 评论(0) 推荐(0)
摘要: Introduction about React component lifecycle. 1 Lifecycle A React component in browser can be any of the following three statuses: mounted, update and 阅读全文
posted @ 2019-06-14 19:35 zzfx 阅读(341) 评论(0) 推荐(0)
摘要: This is really different, React is view library; and Rxjs is reactive programming library for javascript. You can use Rxjs inside react view but in re 阅读全文
posted @ 2019-06-14 19:33 zzfx 阅读(390) 评论(0) 推荐(0)
摘要: 响应式编程是一种异步的、声名式的、面向数据流的编程范式。 异步:moand、observeable、handle; 声名式:用逻辑表述的形式组织代码;使用函数式编程范式。 数据流:将数据视作数据流的形式,并用pipeline的形式做处理。 rx是对响应式编程操作的标准化。 Each language 阅读全文
posted @ 2019-06-14 18:55 zzfx 阅读(330) 评论(0) 推荐(0)
摘要: js 基于哈希表、原型链、作用域、属性类型可配置的多范式编程语言 值类型、引用类型、直接赋值; 原型是以对象形式存在的类型信息。 ECMA-262把对象定义为:无序属性的集合,其属性可以包含基本值,对象或者函数。所以js中对象就是一组键值对。 https://www.cnblogs.com/star 阅读全文
posted @ 2019-06-14 17:20 zzfx 阅读(228) 评论(0) 推荐(0)
摘要: 我相信你已经看过很多关于 JavaScript 的 this 的谈论了,既然你点进来了,不妨继续看下去,看是否能帮你加深对 this 的理解。 最近在看 《You Dont Know JS》 这本书,不得感叹,就算用了 JS 很多年的老前端来看这本书,我觉得还是会有不少的收获。 其中关于 this 阅读全文
posted @ 2019-06-14 16:29 zzfx 阅读(207) 评论(0) 推荐(0)
摘要: redux官方网站 http://cn.redux.js.org/docs/api/combineReducers.html https://www.redux.org.cn 从设计的角度看Redux http://developer.51cto.com/art/201904/595724.htm 阅读全文
posted @ 2019-06-13 16:40 zzfx 阅读(292) 评论(0) 推荐(0)
摘要: 函数式编程的基本特征之一就是 类型到类型之间的映射; (T item) => (Y item) (A, B, C) =>D map(array<T> , (T item) => (Y item)) => array<Y> moand[array<T>>]map((T item) => (Y item 阅读全文
posted @ 2019-06-13 15:42 zzfx 阅读(310) 评论(0) 推荐(0)
摘要: is-a:函数的实现与函数类型的关系; has-a:匿名(闭包)函数的创建者与匿名函数的关系;匿名函数与环境和上下文(函数)的关系; use-a:高阶函数与参量函数的关系; 函数式编程的基本功之一就是: 识别函数、理清函数之间的关系; 阅读全文
posted @ 2019-06-13 15:03 zzfx 阅读(339) 评论(0) 推荐(0)
摘要: 一、函数的识别: 1、router.beforeEach:主函数、高阶函数、入口函数; 2、匿名参量函数:处理跳转过程中的附加逻辑 (to, from, next) => { if (to.matched.some(record => record.meta.requiresAuth)) { // 阅读全文
posted @ 2019-06-13 14:48 zzfx 阅读(866) 评论(0) 推荐(0)
摘要: 定义不定参数函数,要用到下面这些宏: va_start(ap, farg): 初始化一个va_list变量ap,farg是第一个形参 va_arg(ap, type): 获取(下)一个type类型的参数 va_end(ap): 结束使用ap C语言里编写不定参数函数的形式是这样的: #include 阅读全文
posted @ 2019-06-13 14:35 zzfx 阅读(1438) 评论(0) 推荐(0)
摘要: 函数式编程中有一种模式是通过组合多个函数的功能来实现一个组合函数。一般支持函数式编程的工具库都实现了这种模式,这种模式一般被称作compose与pipe。以函数式著称的Ramda工具库为例。 const R = require('ramda'); function inc (num) { retur 阅读全文
posted @ 2019-06-13 11:04 zzfx 阅读(330) 评论(0) 推荐(0)
摘要: 目录 为何而写 redux是什么 redux的设计哲学 redux的工作流 redux的几个核心要素 store action reducer actionCreator combineReducers redux中间件 小结 目录 为何而写 redux是什么 redux的设计哲学 redux的工作 阅读全文
posted @ 2019-06-12 19:38 zzfx 阅读(275) 评论(0) 推荐(0)
摘要: 基于flux和reduce的通信和状态管理机制; 和数据库管理系统一样,redux是一个状态管理系统(或机制)。 const store = createStore( reducer, compose( applyMiddleware(thunk), DevTools.instrument() ) 阅读全文
posted @ 2019-06-12 19:36 zzfx 阅读(367) 评论(0) 推荐(0)
摘要: This is a post that tries to explain the the basics of Redux. We’ll build a minimal working example with Redux. If you’re looking for proper Redux doc 阅读全文
posted @ 2019-06-12 18:32 zzfx 阅读(452) 评论(0) 推荐(0)
摘要: Also these are really nice (from http://slides.com/jenyaterpil/redux-from-twitter-hype-to-production#/): Basic Flow Side Effects Side Effects with API 阅读全文
posted @ 2019-06-12 18:12 zzfx 阅读(405) 评论(0) 推荐(0)
摘要: 图片、模型; 百闻不如一见 模型是大脑对客观事物认识最直接的反映; 文字描述是大脑中客观事物的间接反映; 人类通过事物本身和事物模型的考察,可以在大脑中直接对事物进行认识映射; 人类通过文本描述认识事物,需要经过一个信息解码和模型重构的过程,才能对形成对事物的认识。 通过文字认识事物还会存在信息丢失 阅读全文
posted @ 2019-06-12 18:05 zzfx 阅读(841) 评论(0) 推荐(0)
摘要: 什么是网络套接字(Socket)?一时还真不好回答,而且网络上也有各种解释,莫衷一是。下文将以本人所查阅到的资料来说明一下什么是Socket。 Socket定义 Socket在维基百科的定义: A network socket is an endpoint of an inter-process c 阅读全文
posted @ 2019-06-12 15:51 zzfx 阅读(457) 评论(0) 推荐(0)
摘要: 通信协议是对平台差异的标准化和规范。 是通信的国际通用语言。 差异千差万别的平台通过这个标准和规范化的语言才能实现相互通信。 阅读全文
posted @ 2019-06-12 15:25 zzfx 阅读(274) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 103 下一页