HTML5-History-API:针对不支持pushState,replaceState的浏览器HTML5历史API扩展

时间:2021-02-19 14:16:09
【文件属性】:
文件名称:HTML5-History-API:针对不支持pushState,replaceState的浏览器HTML5历史API扩展
文件大小:37KB
文件格式:ZIP
更新时间:2021-02-19 14:16:09
JavaScript 英语 该Javascript库为较旧的浏览器提供了HTML5历史记录API的仿真。 该库根据W3C规范运行,没有添加任何新方法或不兼容的方法。 可以完全按照例如Dive Into HTML5书( )或History API规范( )中的描述使用该库 )。 您可以使用以下命令安装此插件: npm install html5-history-api 浏览器支持: history.js -IE8 +和其他浏览器 history.ielte7.js -IE6 +和其他浏览器 对于库开发人员: 要在您的库中启用对HTML5-History-API polyfill的支持,您需要添加一行代码: var location = window . history . location || window . location ; 库的代码如下所示: ( function ( ) { /
【文件预览】:
HTML5-History-API-master
----package.json(666B)
----history.min.js(8KB)
----history.js(38KB)
----LICENSE-MIT(1KB)
----README.md(14KB)
----history.ielte7.min.js(11KB)
----component.json(513B)
----history.ielte7.js(46KB)
----bower.json(599B)

网友评论