I'm implementing History.js into my web application as a workaround for the lack of support for history.pushState()
in Internet Explorer.
So far, following demos & tutorials I've written the following code:
var historyJs = window.History;
historyJs.Adapter.bind(window, 'statechange', function () {
var State = History.getState();
historyJs.log(State.data, State.title, State.url);
});
However, I'm getting the following error returned in Internet Explorer 9:
SCRIPT5007: Object expected
jquery.history.js, line 1 character 3154
Why am I receiving this error?
听起来您好像缺少对jQuery的引用。
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
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.