我有一个工作的应用程序,它使用jQuery UI对话框。我想让对话框可以拖动。据我所知,唯一需要的是jquery.ui.draggable.js脚本。所以我将它添加到我正在使用的脚本中,但知道我收到以下错误(如萤幕控制台所示):base不是构造函数 jquery.ui.widget.js中的相关行是:jQuery.ui.draggable.js和jQuery.ui.widget.js冲突
var basePrototype = new base();
这是怎么了将所有的脚本:
<script type="text/javascript" src="/media/development-bundle/jquery-1.4.2.js"></script>
<script type="text/javascript" src="/media/development-bundle/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="/media/development-bundle/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="/media/development-bundle/ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="/media/development-bundle/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="/media/development-bundle/ui/jquery.ui.autocomplete.js"></script>
<script type="text/javascript" src="/media/development-bundle/ui/jquery.ui.dialog.js"></script>
难道我做错了什么?或者这是与jQuery的问题?
预先感谢任何帮助
这应该有助于未来: http://stackoverflow.com/questions/10395996 – 2012-05-02 13:10:51