Riot.js 2.3.0 發布下載,JavaScript 的 MVP 框架

jopen 9年前發布 | 4K 次閱讀 Riot.js

Riot.js是一個客戶端模型-視圖-呈現(MVP)框架并且它非常輕量級甚至小于1kb.盡管他的大小令人難以置信,所有它能構建的有如下:一個模板引擎,路由,甚至是庫和一個嚴格的并具有組織的MVP模式。當模型數據變化時視圖也會自動更新。
Riot.js 2.3.0 發布,Riot 分離成 6 個不同的模塊:

  • compiler

    </li>

  • tmpl

    </li>

  • observable

    </li>

  • route

    </li>

  • core

    </li>

  • cli

    </li> </ul>

    主要改進:

    • Add html5 history router please check the documentation

      </li>

    • Add new rewritten versions of the compiler, template engine and the command line

      </li>

    • Deprecate riot.mountTo

      </li>

    • Change tag._id to tag._riot_id you should not use riot internal “private” properties anyway

      </li>

    • Fix the use of yield on the server

      </li>

    • Fix memory leak in riot.render

      </li>

    • Fix the use of dynamic attributes such as name id

      </li>

    • Update loop behaviour, they will be a bit slower but more reliable you can use the no-reorder option if you want to enable a faster rendering algorithm more details

      </li> </ul>

      下載:https://github.com/riot/riot/archive/v2.3.0.zip

      更新內容請看發行說明:http://riotjs.com/release-notes/


       本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
       轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
       本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!