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

在使用jquery.ajaxComplete时提示 f is not defined;求大神解答
<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <title>ajaxComplete</title>
<script type="text/javascript" src="../js/jquery-1.3.2-vsdoc2.js"></script>
<script type="text/javascript">
$('#msg').ajaxComplete(function(){
$('#msg').css("display","none");
});
</script>
  </head>
  
  <body>
  <div id="msg">
  点击
  </div>
  </body>
</html>


------解决方案--------------------
<script src="http://code.jquery.com/jquery-latest.js"></script>
加上这句试试。。