First, use the base tag so that the relative and absolute paths can be used simultaneously
However, the base tag is incompatible with IE's low version (IE8 and IE8 below)
However, given that IE has an unparalleled dominance in the country, it has been changed to a different wording:
<script type= "Text/javascript" >
Solve the problem that IE does not support the base very well
var base = document.getElementsByTagName ("base") [0].getattribute ("href");
window.location = Base+ "user/search?pagenum=" +pagenum+ "&everypagecount=" +everypagecount+ "& Username= "+username;
......
Second, the absolute path is fully used in the project, do not use the base tag
CSS file: The resource path in the CSS file is the physical relative path to the current file , and you can do so without using an absolute path
JS file: Need absolute path, add an absolute path to JS variable in Common.js
Path issues for Web projects