SpringMVC framework uses window. location. href in js to request url. The IE incompatibility problem is solved.
When using the springMVC framework, you sometimes need to use window. location. href in js to request a url, such as the following path:
Window. location. href = 'forecast/download. do'
In Google's browser, the actual Request Path is: Project name/forecast/download. do
There are several layers of folders in the middle during IE access:
The reason for this is that various browsers have different processing methods when using window. localtion. href to request relative paths.
IE is redirected from the current path
Google redirects from the root directory.
So the best way is to use absolute paths so that they can jump from the root directory:
<Script type = text/javascript> function getPath () {var path = <% = path %>; return path ;}</script>