IE中的jQuery手风琴的无效参数错误 [英] invalid argument error of jquery accordion in IE

查看:80
本文介绍了IE中的jQuery手风琴的无效参数错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

jQuery手风琴抛出无效参数。

The jquery accordion throws "Invalid argument." exception in IE(mine is IE8).

它可在Firefox和chrome中使用。 IE的jQuery手风琴可能是什么问题?

It works in Firefox and chrome. What may be the problem of jquery accordion with IE?

这是html:

<div id="accordion">      
   <h3><a href="#">Training</a></h3>
      <div>                
        <ul style="list-style: none;">
           <li><a href="/User/Index/4">Seminar</a></li>
        </ul>
      </div>
   <h3><a href="#">Meeting</a></h3>
      <div></div>
</div>

调用手风琴的js:

 $(document).ready(
   function() {
     $("#accordion").accordion();
 });

在jquery-1.3.2.min.js中抛出错误:

The Error throws in jquery-1.3.2.min.js:

{J[G]=K}return J[G]},trim:function(E){return(E||"")


推荐答案

正如@ mr.moses所说,我已经更新了我的jquery和ui到最新,现在效果很好。

As @mr.moses said, i have updated my jquery and ui to latest and it works well now.

这篇关于IE中的jQuery手风琴的无效参数错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆