Jquery UI对话框不能与JQuery Mobile一起工作
当我还包含JQuery mobile时,我无法在JQuery中使用简单的对话框:
jQuery UI Dialog - Default functionality $( function() { $( "#dialog" ).dialog(); } ); This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.
我看过以前的这些似乎没有帮助的问题:
- jquery移动对话框无法正常工作
- 不兼容的jquery mobile和ui
我究竟做错了什么?
阅读post后使用 RedNao的多个版本的jquery ui ,我能够创建一个简单的概念certificate。
这个想法是交换两个jQuery实例,但是,你被警告,我还没有完全测试代码中的大量使用。
之后,我通过使用data-enhance="false"
将UI对话框标记隐藏到jQuery Mobile。
然后,它看起来像这样:
Plunker: https ://plnkr.co/edit/oOg6cKEuMFXVrMn3ntCb ? p = preview