Comparison between Sammy.js/History.js/Nav.js [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-03 08:41:38

My point of view here is following (I like sammy.js, so I'm biased here, nothing objective just an opinion).

History.js is all in HTML5 - so it crosses out all the support of IE8 and bellow. That is sometimes acceptable and, however, sometimes - not. Moreover, I am not completely sure that between gecko, trident, webkit - major browser engines - they all support that HTML5 history spec all the way without any differences.

So for me History.js is all out. Then we have to differ between Nav.js and Sammy.js; and I don't see this as a competition. You ONLY have keyboard based navigation in Nav.js and since there is not much projects that don't use jQuery anymore, you can achieve that in Sammy.js by using http://api.jquery.com/category/events/keyboard-events/ and special routes for special events meaning next/previous page or whatever else floats your goat.

Sammy.js is lightweight, efficient, scalable, reusable and fully cross-browser compatible.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!