zoukankan      html  css  js  c++  java
  • flux

     flux

    https://facebook.github.io/flux/

    Flux is the application architecture that Facebook uses for building client-side web applications.

    It complements React's composable view components by utilizing a unidirectional data flow.

    It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.

    https://github.com/facebook/flux/tree/5dc1dd79c76e57b76bed0f764b5937c52205ca3e/examples/flux-concepts

    flux-concepts

    These are the important high-level concepts and principles you should know about when writing applications that use Flux.

     

    Overview

    Flux is a pattern for managing data flow in your application. The most important concept is that data flows in one direction. As we go through this guide we'll talk about the different pieces of a Flux application and show how they form unidirectional cycles that data can flow through.

    flux解释

    http://www.ruanyifeng.com/blog/2016/01/flux.html

    简单说,Flux 是一种架构思想,专门解决软件的结构问题。它跟MVC 架构是同一类东西,但是更加简单和清晰

    Flux存在多种实现(至少15种),本文采用的是Facebook官方实现

    具体使用方法也见阮大文章,代码和文字都形象好理解。

    flux含义

    https://www.merriam-webster.com/dictionary/flux

    Definition of flux

     (Entry 1 of 2)

    1 : a flowing of fluid from the body: such as
    2 : a continuous moving on or passing by (as of a stream)
    3 : a continued flow : flood a flux of words
    4a : influx
    b : change, fluctuation in a state of flux the flux following the death of the emperor
    5 : a substance used to promote fusion (as of metals or minerals) especially : one (such as rosin) applied to surfaces to be joined by soldering, brazing, or welding to clean and free them from oxide and promote their union
    6 : the rate of transfer of fluid, particles, or energy across a given surface

    http://www.ichacha.net/flux.html

    n.
    1.流,流出;流动。
    2.涨潮。
    3.不断的变动,波动。
    4.【物理学】流量,通量,电通量,磁通量。
    5.熔解,熔融;助熔剂;焊剂。
    6.【医学】异常溢出;腹泻。

    短语和例子


    vt.
    1.熔化,使熔解。
    2.用助熔剂处理。
    vi.
    1.(潮)涨;流出。
    2.熔化。

    https://en.wikipedia.org/wiki/Flux

    维基百科上,说flux是研究物质通过平面的方向和大小的, 归根结底是研究是流体的在某个时刻某个位置状态的术语。

    Flux describes any effect that appears to pass or travel (whether it actually moves or not) through a surface or substance. A flux is either a concept based in physics or used with applied mathematics. Both concepts have mathematical rigor, enabling comparison of the underlying mathematics

    应用到电磁场领域:

    flux类似正负极电子的磁场形状, 从正电荷不断发出磁力线,散射,最终汇聚到负电荷。

    中间的一道直线,我们和可以类比于View

    正电荷为 dispatcher, 所有的action从此处发出, 发射到若干磁力线(store),在view层得到体现磁力的状态(state)。

    https://cn.bing.com/images/search?q=Electric+Field&FORM=IRBPRS&=0

    flux三元素对应图:

     

  • 相关阅读:
    mysql 查询某年某月数据~(如果数据表用时间戳)
    mongo_4.25 find() hasNext() next()
    在YII框架中有2中方法创建对象:
    bootsrap[$data]
    date
    cookie
    JavaScript shell, 可以用到 JS 的特性, forEach
    在 Yii框架中使用session 的笔记:
    mysql查询今天、昨天、7天、近30天、本月、上一月 数据
    Python 自定义异常练习
  • 原文地址:https://www.cnblogs.com/lightsong/p/10358701.html
Copyright © 2011-2022 走看看