使用jquery-ui-1.10.1.custom.js时未定义jQuery: [英] jQuery is not defined when using jquery-ui-1.10.1.custom.js:

查看:83
本文介绍了使用jquery-ui-1.10.1.custom.js时未定义jQuery:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

ERROR MESSAGE (*Uncaught ReferenceError: jQuery is not defined jquery-ui-1.10.1.custom.js:319 (anonymous function))*

<script src="JS/jquery-ui-1.10.1.custom.js" type="text/javascript"></script>
<script src="JS/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>        
<script src="MODULES/SHK/Js/autoCombo/jquery.ui.core.js" type="text/javascript"></script>
<script src="MODULES/SHK/Js/autoCombo/jquery.ui.position.js" type="text/javascript"></script>
<script src="MODULES/SHK/Js/autoCombo/jquery.ui.widget.js" type="text/javascript"></script>
<script src="MODULES/SHK/Js/autoCombo/jquery.ui.autocomplete.js" type="text/javascript"></script>
<script src="MODULES/SHK/Js/autoCombo/jquery.ui.button.js" type="text/javascript"></script>
<script src="MODULES/SHK/Js/autoCombo/TRYY.js" type="text/javascript"></script>


<script>
    window.onload = aa();
    function aa() {
        $("#combx").combobox({

            selected: function(event, ui) {
                alert(ui.item.value);
            }
        });
    }

</script>


推荐答案

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

You need to declare the main JQuery library and you have two declarations of jquery-ui-custom, one is the original one and the other is minified version. try deleting the other one. I suggest you just delete the one that is unminified

<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="JS/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>  
/** 
 *Your other scripts below 
 */

这篇关于使用jquery-ui-1.10.1.custom.js时未定义jQuery:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆