简体   繁体   English

History.js或本地历史API?

[英]History.js or native history api?

https://github.com/browserstate/History.js https://github.com/browserstate/History.js

In the "Notes on Compatibility" section it says it solves some browser bugs, but all browsers listed there are very old. 它在“兼容性说明”部分中说,它解决了一些浏览器错误,但其中列出的所有浏览器都非常老。 Does that mean I can use the native API, if I don't need to support those browsers? 如果不需要支持那些浏览器,这是否意味着我可以使用本机API?

Yes, you can. 是的你可以。 To find out if you can use something, the website caniuse.com is always very convenient. 要查找您是否可以使用某些东西,网站caniuse.com总是非常方便。 For example, for the History API, you'd get this table: http://caniuse.com/#feat=history . 例如,对于History API,您将获得此表: http : //caniuse.com/#feat=history Which tells you almost every browser supports it in their newest version. 告诉您几乎所有浏览器都支持最新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM