简体   繁体   English

Internet Explorer 11和jQuery UI

[英]Internet explorer 11 and jQuery UI

I use jQuery and jQuery UI. 我使用jQuery和jQuery UI。

This code works perfectly : 这段代码很完美

$('#mydiv').dialog(); 

But this one doesn't work ( only in IE 11 ) : 但是这个不起作用仅在IE 11中 ):

    $('#bouton').click(function () {

        $('#mydiv').dialog();       
    });

I get the message "Object or method "dialog" does not exist"... 我收到消息“对象或方法”对话框“不存在”...

It seems that the dialog () method cannot be accessed into the jQuery click() function. 看来,dialog()方法无法访问jQuery click()函数。 It is really strange... 真奇怪......

As a alreday said, this problem seems to occur only in IE 11 (it is OK in IE 10!). 正如alreday所说,这个问题似乎只发生在IE 11中(IE 10中没问题!)。

Thank you very very much for you help, I'me trying to solve it for hours... 非常感谢你的帮助,我试图解决它几个小时......

Might work if you use ? 如果使用,可能会工作吗?

$('#bouton').click(function () {
    $('#mydiv').modal('show');      
});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM