IE9 does not support the use history.js solve pushState Interface

Before writing to prevent browser fallback function, after the discovery does not support pushState under IE9, resulting in lower micro-channel can not be well implemented to prevent browsers fallback (in the case of nested).

 

History.js used today to solve this problem.

 

1. Locate the history.js on github (thumbs up to that)

2. Download the file to find navite.history.js (+ html5 folder html4)

3. Import of

 

Then replaced with History.pushState history.pushState

 

Because history.js is implemented using a hash, so you call parameters History.pushState (parameter 1, parameter 2, parameter 3) 3 can not contain hash, similar add '? Page = 1' such parameters can be resolved.

This is very egg pain, but fortunately currently not a single impact to any business. If you want replaceState late, I might point out problems. This time to re-study

Guess you like

Origin www.cnblogs.com/saving/p/10960300.html