The reason for coincidence is that all kinds of factors contribute to this event. A few factors are: ie in the system is IE6 (the difference between the specific version of the small I am not very sure or clear), write JSP page and use the development tools automatically generated JSP source code, the use of wdatepicker.js this time control, as well as some of the writing order of the page code.
The reason that the classic, very obvious, from the above coincidence can be seen, IE6 is absolutely classic.
All test code is as follows (except for the control related file to be referenced)
Copy Code code as follows:
<%@ page language= "java" import= "java.util.*" pageencoding= "Utf-8"%>
<%
String path = Request.getcontextpath ();
String basepath = request.getscheme () + "://" +request.getservername () + ":" +request.getserverport () +path+ "/";
%>
<! DOCTYPE html>
<base href= "<%=basePath%>"/>
<title></title>
<script src= "Js/my97datepicker/wdatepicker.js" type= "Text/javascript" ></script>
<body></body>
Running the access will happen as follows: (note: Under special conditions Oh!!!) )
Known solutions:
Method 1: Remove the <base ......> code, if you can't use it.
Method 2: Complement <base> end tag, you must add </base>, instead of <base .../>
Method 3: Place the <base ......> code in the <script src= "Js/my97datepicker/wdatepicker.js" type= "Text/javascript" ></ After script>
ps& Note: IE6 cache problem is more serious, the test needs to clean up the temporary files in time, otherwise you will have hallucinations!!!
Specific reasons? I don't know...... I just learned the superficial problem, the online has the relevant articles of the great gods, can be based on some of the keywords mentioned in the search, depending on you!!!