I've read several question/answers on Stack Overflow and Googled the issue, I can't seem to get the event.state
to come back with anything but null
.
I got that it wont work with the jQuery event, but when I do something like this:
window.onpopstate = function (e) {
console.log(e.state)
}
With something along the lines of a jQuery.ajax success calling
history.pushState({ lastUrl: data.State }, data.Title, data.UrlKey);
Neither Chrome (v19) or Firefox (v12) return anything but null? Am I missing something? Is it just not fully implemented?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…