Cycle.js v6.0.0 Nested 發布,人機交互 JS 框架
Cycle Nested 是個全新的 Cycle.js 版本,主要關注硬核的復用:任意 Cycle.js 應用都可以很容易在更大的 Cycle.js 應用中復用。
Cycle.js Nested 包括:
-
Cycle Core v6.0.0 +
</li> -
Cycle HTTP Driver v7.0.0 +
</li> -
Cycle DOM v8.0.0 +
</li> -
</li>isolate(), 組件助手庫 -
其他兼容驅動
</li> </ul>新特性:
-
Cycle.js 應用組件簡化 (比如
</li>main()重命名為Button()),可以在大型 Cycle.js 應用中復用 -
Cycle DOM 引入 hyperscript helpers,可以創建 virtual DOM
</li> </ul>下載:https://github.com/cyclejs/cycle-core/archive/v6.0.0.zip
命名變化:
Before After </tr> </thead>DOM.get() </tr>DOM.select().events()Response (naming convention) Source (naming convention) </tr>Request (naming convention) Sink (naming convention) </tr>Cycle DOM mockDOMResponse()Cycle DOM </tr>mockDOMSource()labeledSlider(custom element) </tr>LabeledSlider(dataflow component)let [sinks, sources] = Cycle.run(m, d) </tr> </tbody> </table>let {sinks, sources} = Cycle.run(m, d)Cycle.js 是一個人機交互的 JavaScript 框架。Cycle 的核心是由 human() 和 computer () 兩個函數相互作用而建立的模型。計算機的輸出作為人體的輸入,反之亦然,然后導出方程 x = human(computer(x)),這個 x 是可以觀察的。人機相互觀察,這就是我們說的“功能單項數據流”,或者“反應對話”,作為一個應用程序的開發者,你只要指定 computer() 的功能。
來自:http://www.oschina.net/news/69251/cycle-js-6-0-0-nested本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!相關資訊
相關經驗
sesese色
-