setInterval(function() { Push();  },1000*5);
   function Push() {
alert(456)
   $.ajax({
         type: "POST",
         url: "/enhancement/service_refreshWeb.action",
         dataType: "json",
         success: function(msg){
           alert( "Data Saved: " + msg );
         }
      }); 
      }
不知道哪里出错,方法不走action,

解决方案 »

  1.   

    456弹了么?  后面没得分号setInterval(function() { Push();  },1000*5);
    改成
    setInterval("Push",5000);

    setInterval("Push()",5000);然后把这句setInterval(function() { Push();  },1000*5); 放在Push函数后面试试
      

  2.   

    都走方法啦,已经弹出来,就是   $.ajax()里面方法没走
      

  3.   

    我$.ajax()里面是不是那里写错
      

  4.   

    $.post("/enhancement/service_refreshWeb.action",
       function(data){
         alert(data);
       }, "json");换个方法试试..
      

  5.   

    如果是IE代码修改成这样试试
    $.ajax({
              type: "POST",
              url: "/enhancement/service_refreshWeb.action",
              dataType: "json",
              success: function(msg){
                alert( "Data Saved: " + msg );
              }
           }),
          } 
      

  6.   

    刚才修改错了,应该是这样
    $.ajax({
               type: "POST",
               url: "/enhancement/service_refreshWeb.action",
               dataType: "json",
               success: function(msg){
                 alert( "Data Saved: " + msg );
               }
            },);
      

  7.   

    我esclipse出问题啦我说怎么不走呢
      

  8.   

    是缓存了了吧?
     url: "/enhancement/service_refreshWeb.action?t=" + (new Date()).getTime() ,试试