I'm using window.history
in JavascriptMVC application to enable back/forward/refresh functionality for each controller. Every time I load a new controller I'm using window.history.pushState
to add a new state to history. And then on back/refresh I'm using the saved state and reuse the data to build the controller again.
The whole idea works fine excepting one issue on specific scenario. I'm getting the following error:
Failed to execute 'pushState' on 'History': An object could not be
cloned.
The same data is added without problem on other scenario. What can cause this error?
Thanks for the assistance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…