问题描述
我需要一个路由库来处理客户端 js 应用程序的路径.
I'm in the need for a routing library to handle my paths for a client side js app.
我目前正在使用backbone.js,虽然很棒,但功能还不够齐全.
I'm currently using backbone.js, which while great, is not fully featured enough.
我正在寻找一个专用的路径库,我可以用它替换主干(仅在路径方面,仍然希望将其用于 MVC),具有很多功能.
I'm looking for a dedicated pathing library that I can replace backbone with (only in terms of pathing, still want to use that for MVC), something with a lot of features.
谢谢
推荐答案
有许多有趣的路由库http://www.microjs.com/#spa
Backbone 和 Crossroads(及其随附的库 Hasher)都列在那里,但您还应该查看 Director(来自 Flatiron 框架的独立模块)和 LeviRoutes——两者都没有使用,但它们看起来很有前途.
Backbone, and Crossroads (and its accompanying library, Hasher) are both listed there, but you should also check out Director (independent module from the Flatiron framework) and LeviRoutes -- haven't used either but they look pretty promising.
这篇关于javascript 客户端路由/路径库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!