简体   繁体   中英

History.js or native history api?

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?

Yes, you can. To find out if you can use something, the website caniuse.com is always very convenient. For example, for the History API, you'd get this table: http://caniuse.com/#feat=history . Which tells you almost every browser supports it in their newest version.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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