本帖最后由 liugwind 于 2012-07-03 16:34:33 编辑

解决方案 »

  1.   

    先Firebug下看看jquery.js文件有没有正确加载,加载失败的话会报404错误的。
      

  2.   

    是请求没有成功,hia是请求根本就没发送
      

  3.   


    jquery.js是已经正确加载了 ,我把
    <script language="JavaScript" type="text/javascript" >
    function getVideoHit(vid){
     $.ajax({
      type: 'get',
      url: '/temp/hudong/info.php?action=hit',
      data: 'id='+vid,
      success:function(obj){
      }
      });
    }
    </script>
    这段代码去掉完全没有错误 
      

  4.   

    猜测会不会是因为缓存的缘故导致的,
    如果是这样的话,你可以试一试吧get方法改成POST方法
      

  5.   

    贴一下JQUERY库 jQuery JavaScript Library v1.3.2 ,由于文件太大贴不下
    /*
     * jQuery JavaScript Library v1.3.2
     * http://jquery.com/
     *
     * Copyright (c) 2009 John Resig
     * Dual licensed under the MIT and GPL licenses.
     * http://docs.jquery.com/License
     *
     * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
     * Revision: 6246
     */
      

  6.   


    我的QQ是 1742-912  你的QQ多少
      

  7.   

    具体的错误信息是什么、哪一行?如果是$未定义,那就是jquery.js没加载进来。
      

  8.   

    <script language="JavaScript" type="text/javascript" >
    function getVideoHit(vid){
     $.ajax({
      type: 'get',
      url: '/temp/hudong/info.php?action=hit',
      data: 'id='+vid,
      success:function(obj){
      }
      });
    }
    </script>改为<script language="JavaScript" type="text/javascript" >
    function getVideoHit(vid){
      $("#hit") ; //没有错误
       $("#hit").html("somedata") ; //提示错误 , null为空或不是对象
    }
    </script>
      

  9.   

    $( "#hit ")   ;   //没有错误
          $( "#hit ").html( "somedata ")   ;   //提示错误   ,   null为空或不是对象 
    无法想象出是啥错误
      

  10.   


    FIREBUG控制台输出:
    $("#hit") is null
    http://www.dy800.cc/35822.htm
    Line 21
      

  11.   

    font标签实在太过时了,用span代替试试:
    <span style="color:red;" id="hit"></span>
      

  12.   


    好的谢谢 初步原因已经查明, 源程序里面加载了一个 max文件
    /*'******************************************************************************************
    ' Software name: Max(马克斯) Content Management System
    ' Version:4.0
    ' Web: http://www.maxcms.net
    ' Author: 石头([email protected]),yuet,长明,酒瓶 
    ' Copyright (C) 2005-2009 马克斯官方 版权所有
    ' 法律申明:MaxCMS程序所有代码100%原创、未引入任何网上代码,对一切抄袭行为、坚决严肃追究法律责任
    '*******************************************************************************************/
    这里面有一段 eval代码 可能是这个代码覆盖了$这个