2

当我执行History.js到我的web应用程序为缺少在Internet Explorer中的history.pushState()支持解决方法接收错误。使用History.js

到目前为止,以下演示&教程我已经写了下面的代码:

SCRIPT5007:对象在Internet Explorer 9返回

var historyJs = window.History; 

historyJs.Adapter.bind(window, 'statechange', function() { 
    var State = History.getState(); 
    historyJs.log(State.data, State.title, State.url); 
}); 

不过,我发现了以下错误预计

jquery.history.js,line 1 character 3154

enter image description here

为什么我收到此错误?

+0

您是否发现了导致该错误的原因? – barry

+0

@barry没有没有,还在寻找一个解决方案 – Curt

回答

0

这听起来像你缺少jQuery的参考。

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>