ajax局部刷新IE浏览器 ,不能运行??

ajax局部刷新功能,在谷歌、360、火狐、搜狗等其他浏览器都能实现,但在IE浏览器却不行,求大神给予解答!O(∩_∩)O谢谢各位了

ajax脚本方法:

  <script type="text/javascript">
           //$(document).ready(function () {
               function GetQuery(id, name, table) {

                   $.ajax({
                       url: "../ajaxHandler/ChartsHandler.ashx?id=" + id + "&name=" + name + "&table=" + table + "&timeStamp=" + new Date().getTime(),//timeStamp时间戳,每次刷新
                       type: "post",
                       success: function (returnValue) {
                           $("#bar").html(returnValue);
                           SubjectQuery(id, name);
                       },
                       error: function (returnValue) {
                           alert("对不起!数据加载失败!");
                       }
                   })
               }

html处的获取:

  <asp:Repeater ID="CourseList" runat="server" >
        <ItemTemplate>
      <ul>
         <li ><a id='<%# Eval("科目id") %>' href="javascript:void(0)"  onclick="GetQuery('<%# Eval("科目id") %>','<%# Eval("科目名称") %>','110')"> <%#Eval("科目名称") %> </a> </li>
           </ul>
        </ItemTemplate>
        </asp:Repeater>

<br> //$(document).ready(function () {<br> function GetQuery(id, name, table) {</p> <pre><code> $.ajax({ url: &quot;../ajaxHandler/ChartsHandler.ashx?id=&quot; + id + &quot;&amp;name=&quot; + name + &quot;&amp;table=&quot; + table + &quot;&amp;timeStamp=&quot; + new Date().getTime(),//timeStamp时间戳,每次刷新 type: &quot;post&quot;, success: function (returnValue) { $(&quot;#bar&quot;).html(returnValue); SubjectQuery(id, name); }, error: function (returnValue) { alert(&quot;对不起!数据加载失败!&quot;); } }) } </code></pre>

<br> //$(document).ready(function () {<br> function GetQuery(id, name, table) {</p> <pre><code> $.ajax({ url: &quot;../ajaxHandler/ChartsHandler.ashx?id=&quot; + id + &quot;&amp;name=&quot; + name + &quot;&amp;table=&quot; + table + &quot;&amp;timeStamp=&quot; + new Date().getTime(),//timeStamp时间戳,每次刷新 type: &quot;post&quot;, success: function (returnValue) { $(&quot;#bar&quot;).html(returnValue); SubjectQuery(id, name); }, error: function (returnValue) { alert(&quot;对不起!数据加载失败!&quot;); } }) } </code></pre>

遇到这种问题,我只能建议你用IE F12功能去调试你的js,同时IE F12提供了http抓包功能(也可以用fiddler),看下你的请求有没有发到服务器端。

F12然后在JS里面打断点,同时后台也打断点。一般这种情形,比较有可能是你的函数名和IE冲突了,以前我就遇到过这种,明明是一个感觉IE不会用到的函数
名,没想到它还真的自己有了。