【问题标题】:Why is JQuery mobile not working in Internet Explorer?为什么 JQuery mobile 不能在 Internet Explorer 中运行?
【发布时间】:2011-09-30 22:05:54
【问题描述】:

由于某种原因,JQuery mobile 没有在我的网站上的 Internet Explorer 9 中呈现 - http://dev.eventhello.com/users/login。我在兼容模式下试过了,还是不行。

关于为什么它在 Firefox、Safari 和 Chrome 中有效,但在 Internet Explorer 中无效的任何想法?

【问题讨论】:

    标签: jquery-mobile cross-browser internet-explorer-9


    【解决方案1】:

    您在登录页面源代码的第 33 行有 Uncaught SyntaxError: Unexpected token }。这会导致 IE 中的 javascript 异常,这可能会阻止页面呈现。

    您可以尝试添加空字符串作为初始源值吗:

    $( "#EventCity" ).autocomplete({
                            source: "" });
    

    【讨论】:

    • 感谢您指出该错误。我已经修好了;但是,问题仍然存在。
    • 现在我得到Object doesn't support this property or method。请在 IE 中启用脚本调试并检查。某些 javascript 对象可能具有不同的属性,具体取决于浏览器。
    【解决方案2】:

    问题是 JQuery 1.5 版存在错误,因此我进行了更新。更多详情请见jQuery Templates not working in IE9 RC

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-17
      • 1970-01-01
      • 1970-01-01
      • 2011-11-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多