JQuery Mobile 1.3和JQuery UI 1.10的兼容性

时间:2013-05-22 07:44:27

标签: jquery-ui jquery-mobile

我尝试使用JQ Mobile作为主UI,而JQ UI仅用于实现拖放功能。当首先包含JQM库然后是JQ UI时,一些小部件和JQM功能将不会按预期运行;当首先包含UI时,可拖动和可放置的功能似乎未定义,如Firebug所示。有没有解决方法?感谢。

<!-- include JQuery UI before JQ Mobile -->
<script src="jquery-ui-1.10.3/js/jquery-1.9.1.js"></script>
<script src="jquery-ui-1.10.3/js/jquery-ui-1.10.3.custom.js"></script>  
<link href="jquery-ui-1.10.3/css/smoothness/jquery-ui-1.10.3.custom.css" rel="stylesheet">

<link href="jqueryMobile/jquery.mobile-1.3.1.css" rel="stylesheet">
<link href="jqueryMobile/jquery.mobile.theme-1.3.1.css" rel="stylesheet">
<link href="jqueryMobile/jquery.mobile.structure-1.3.1.css" rel="stylesheet">


<script src="jqueryMobile/jquery.mobile-1.3.1.js"></script>
<script src="jqueryMobile/jquery.ui.touch-punch.js"></script>

0 个答案:

没有答案