ZChen

Fake it until you make it


  • Home

  • Categories

  • Tags

  • Archives

  • About

  • Search

你需要知道的HTML知识

2019-12-29 19:23
Posted on 2019-12-29 19:23 | Post modified: 2020-01-02 18:33 | In 前端之路
Words count in article: 2,252 | Reading time ≈ 8 mins

前端三大件:HTML+CSS+JS

今天我们就来说一说HTML,可能很多人觉得这个太简单了,就是平常写网页的一堆元素。然而越是基础的东西人们越容易忽略,所以特意梳理了下相关知识,希望加深对它的理解。

如果你觉得本文对你有所帮助,欢迎猛戳 :star: Github(梳理前端知识体系全集)

Read more »

深入理解跨域及常见解决方法

2019-10-09 18:23
Posted on 2019-10-09 18:23 | Post modified: 2020-01-02 18:33 | In 前端之路
Words count in article: 2,628 | Reading time ≈ 12 mins

什么是跨域?

浏览器的同源策略

在解释跨域的概念之前,先让我们来了解下浏览器的同源策略,这也是为什么会有跨域的由来。

同源策略是一项约定,是浏览器的行为,限制了从同一个源下的文档或脚本如何与来自另一个源的资源进行交互。这是一个用于隔离潜在恶意文件的重要安全机制。

所谓同源是指 协议+域名+端口 三者都相同,不满足这个条件即为非同源,即使两个不同域名指向同一 IP 地址。 当协议、子域名、主域名、端口号中任意一个不相同时,都算作不同域。 不同域之间相互请求资源,就算作跨域。

Read more »

Redux核心概念词汇表

2019-07-05 19:21
Posted on 2019-07-05 19:21 | Post modified: 2019-07-05 19:34 | In Redux
Words count in article: 1,021 | Reading time ≈ 4 mins

这是 Redux 的核心概念词汇表以及这些核心概念的类型签名。

State

1
type State = any;

State (也称为 state tree) 是一个宽泛的概念,但是在 Redux API 中,通常是指一个唯一的 state 值,由 store 管理且由 getState() 方法获得。它表示了 Redux 应用的全部状态,通常为一个多层嵌套的对象。

Read more »

Redux三大基础概念(Action、Reducer和Store)

2019-07-04 12:46
Posted on 2019-07-04 12:46 | Post modified: 2019-07-04 13:26 | In Redux
Words count in article: 3,443 | Reading time ≈ 15 mins

本文源码地址:GitHub 传送门

Action

什么是Action? Action 是把数据从应用(这里之所以不叫 view 是因为这些数据有可能是服务器响应,用户输入或其它非 view 的数据 )传到 store 的有效载荷(payload)。它是 store 数据的唯一来源。一般来说你会通过 store.dispatch() 将 action 传到 store。
来看几个例子:

Read more »

Redux介绍

2019-07-03 12:46
Posted on 2019-07-03 12:46 | Post modified: 2019-07-05 19:34 | In Redux
Words count in article: 1,919 | Reading time ≈ 8 mins

是什么(What)?

Redux 是 JavaScript 状态容器,提供可预测化的状态管理。Redux 由 Flux 演变而来,但受 Elm 的启发,避开了 Flux 的复杂性。Redux 除了和 React 一起用外,还支持其它 UI 库。 它体小精悍(只有 2kB,包括依赖)。

为什么(Why)?

Read more »

Angular 实战系列 - Part 8: 延迟加载,生产部署和 SSL

2019-02-18 19:55
Posted on 2019-02-18 19:55 | Post modified: 2019-02-25 12:06 | In Angular , Angular实战系列
Words count in article: 3 | Reading time ≈ 1 mins
TO BE DONE.
Read more »

Angular 实战系列 - Part 7: 相关数据和令牌更新

2019-01-25 17:55
Posted on 2019-01-25 17:55 | Post modified: 2019-01-27 21:17 | In Angular , Angular实战系列
Words count in article: 3 | Reading time ≈ 1 mins
TO BE DONE.
Read more »

Angular 实战系列 - Part 6: 响应式表单和自定义验证

2019-01-20 17:55
Posted on 2019-01-20 17:55 | Post modified: 2019-01-22 21:57 | In Angular , Angular实战系列
Words count in article: 3 | Reading time ≈ 1 mins
TO BE DONE.
Read more »

Angular 实战系列 - Part 5: 动画和模板驱动表单

2019-01-16 19:55
Posted on 2019-01-16 19:55 | Post modified: 2019-01-17 11:57 | In Angular , Angular实战系列
Words count in article: 3 | Reading time ≈ 1 mins
TO BE DONE.
Read more »

Angular 实战系列 - Part 4: 访问控制,管理和详情页面

2019-01-10 21:15
Posted on 2019-01-10 21:15 | Post modified: 2019-01-11 00:37 | In Angular , Angular实战系列
Words count in article: 3 | Reading time ≈ 1 mins
TO BE DONE.
Read more »
12…5
ZChen

ZChen

46 posts
33 categories
67 tags
GitHub E-Mail
Creative Commons
© 2017 — 2020 suchenrain
世界美好,你也是。
0%