<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/ui-lightness/jquery-ui.css" />
<script type="text/javascript" src="../Content/Scripts/jquery.js"></script>
<script type="text/javascript" src="../Content/Scripts/jquery.ui.core.js"></script>
<script type="text/javascript" src="../Content/Scripts/jquery.ui.widget.js"></script>
<script type="text/javascript" src="../Content/Scripts/jquery.ui.position.js"></script>
<script type="text/javascript" src="../Content/Scripts/jquery.ui.menu.js"></script>
<script type="text/javascript" src="../Content/Scripts/jquery.ui.selectmenu.js"></script>
<script type="text/javascript" src="../Content/Scripts/jquery.ui.tabs.js"></script>
这就是我的脚本和样式表导入的总和,但是当它尝试“转换”<select>
之一时元素到 JQuery UI Selectmenu,我在 jquery.ui.selectmenu.js 的 Mozilla Web Developer 中收到此错误,并且未应用 jquery esque 主题。
我之前看到过类似的错误,这是由于脚本的重要顺序错误以及方法不存在导致的,但似乎无法想到是什么导致了这里。
任何想法都会很棒,如果需要可以提供更多代码,但它只是一个 <select>
带有 $('#exampleSelect').selectmenu();
的元素应用于它。
最佳答案
只是在黑暗中随机拍摄。根据jQuery UI 1.9 upgrade guide ,方法 .uniqueId()
仅在 jQuery UI 1.9 中引入。您的版本可能不支持上述方法,或者您可能正在混合使用不同的版本。
关于javascript - 错误 : this. element.uniqueId 不是函数。 JQuery 用户界面。有人见过这个吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11229617/