jsp中加了<base href="<%=bathpath %>" 有时会使javascript不起作用。如:
windows.self.location="item_add.jsp"
应改为:
windows.self.location="<%=bathpath %>item_add.jsp"
//<%=bathpath %>后面不用加/,因为<%=bathpath %>显示出来后面就有/
就好了