在我的网站上,我发现了pushState函数在internet中的问题,我用History.js API类替换了它。现在我的职能是:
// Push new history state
if (loc.hash !== hash) {
//w.history.pushState(null, null, '#' + hash);
w.History.pushState(null, null, '#' + hash);
}但是浏览器说:
History.js不支持带有片段标识符(散列/锚)的状态。
有什么问题吗?
提前谢谢你
发布于 2013-11-27 09:30:19
试着按照文档的方式运行.
History.pushState(null, null, "?state=4"); https://stackoverflow.com/questions/18841553
复制相似问题