我正在将History.jshistory.pushState()
实现到我的 Web 应用程序中,作为Internet Explorer缺乏支持的解决方法。
到目前为止,按照演示和教程,我编写了以下代码:
var historyJs = window.History;
historyJs.Adapter.bind(window, 'statechange', function () {
var State = History.getState();
historyJs.log(State.data, State.title, State.url);
});
但是,我在 Internet Explorer 9 中返回了以下错误:
SCRIPT5007:预期对象
jquery.history.js,第 1 行字符 3154
为什么我会收到此错误?