日期:2014-05-16  浏览次数:20454 次

JQuery冲突,直接用JQuery("#???")也报错
我的header.jsp文件引入的js如下:

<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="front/js/jquery.isotope.min.js"></script>
<script type="text/javascript" src="front/js/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="front/js/ddsmoothmenu.js"></script>
<script type="text/javascript" src="front/js/supersized.3.2.7.min.js"></script>
<script type="text/javascript" src="front/js/supersized.shutter.min.js"></script>
<script type="text/javascript" src="front/js/jwplayer.js"></script>
<script type="text/javascript" src="front/js/jquery.qtip.min.js"></script>
<script type="text/javascript" src="front/js/jquery.flexslider-min.js"></script>
<script type="text/javascript" src="front/js/jquery.fancybox.js"></script>
<script type="text/javascript" src="front/js/jquery.gridnav.js"></script>
<script type="text/javascript" src="front/js/fashionCustom.js"></script>
<script type="text/javascript" src="js/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="js/notice.js"></script>

我的footer.jsp引入的js如下:

<script type="text/javascript" src="js/sidebar/js/prototype.js"></script>
<script type="text/javascript" src="js/sidebar/js/effects.js"></script>
<script type="text/javascript" src="js/sidebar/js/side-bar.js"></script>

foot.jsp有个<form>如下:

<form id="loginForm" action="javascript:login();">
  <fieldset>
    <legend style="color:white;">用户登录</legend>
    <input type="text" placeholder="用户名" id="username" name="account.userName" style="width:95%;margin-left:5px;margin-right:5px;"/>
    <input type="text" placeholder="密码" id="password" name="account.password" style="width:95%;margin-left:5px;margin-right:5px;"/>
    <label class="checkbox" style="color:white;width:30%;float:left;margin-left:5px;">
     <input type="checkbox">自动登录
    </label>
    <a herf="javascript:;" style="float:left;">忘记密码?</a>
    <button type="submit" class="btn btn-primary" style="width:95%;margin-left:5px;margin-right:5px;">登录</button>