使用jquery-ui-1.10.1.custom.js时未定义jQuery:

ERROR MESSAGE *未捕获的ReferenceError:jQuery未定义jquery-ui-1.10.1.custom.js:319(匿名函数)*

         window.onload = aa(); function aa() { $("#combx").combobox({ selected: function(event, ui) { alert(ui.item.value); } }); }  

您需要声明主JQuery库,并且您有两个jquery-ui-custom声明,一个是原始的,另一个是缩小版本。 尝试删除另一个。 我建议你删除那个未经宣传的那个

   /** *Your other scripts below */ 

当您使用其他与jquery相关的插件时,您应该在其他JS的顶部声明jquery-1.8.3.min.jsjquery-1.8.3.min.js )。

因为必须在jquery-1.8.3.min.js上定义JQuery对象。

摆脱括号!

 window.onload = aa();//this runs aa instantly, not on window.onload window.onload = aa;//this gives window.onload event a function to execute when it's time