【问题标题】:jQuery ajax dataType script with IE6带有 IE6 的 jQuery ajax dataType 脚本
【发布时间】:2010-07-14 20:36:22
【问题描述】:

我正在使用以下代码在页面上执行 ajax 魔法,它适用于任何浏览器 - 除了,你猜对了,可爱的 IE6

jQuery.ajax({
  type:     "GET",
  url:      jQuery("#filter_form").attr('action'),
  data:     jQuery("#filter_form").serialize(),
  dataType: 'script',
  success:  function(response) { //insert into page }
});
return false;

实际上它确实呈现了正确的结果,但也显示了一条丑陋的消息——比如“~2mio 行中的语法错误”

当我删除 dataType 脚本时,一切正常,但我的服务器响应错误,则未设置数据类型。

有人知道吗?

非常感谢, 乔

【问题讨论】:

    标签: jquery ajax internet-explorer-6


    【解决方案1】:

    问题在于您正在加载的脚本:在那里会发现 IE6 独有的语法错误;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-09-22
      • 2011-07-06
      • 1970-01-01
      • 2013-10-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多