Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/82.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Jquery不工作?_Javascript_Jquery_Ajax - Fatal编程技术网

Javascript Jquery不工作?

Javascript Jquery不工作?,javascript,jquery,ajax,Javascript,Jquery,Ajax,最后它变成了$(文档)。ready不见了。现在我添加了返回的html似乎不想显示。下面的代码有问题吗 success: function(data){ jQuery('#response').empty(); var response = jQuery(data).find('#response').html(); jQuery('#response').hide().html(response).fadeIn(); jQu

最后它变成了$(文档)。ready不见了。现在我添加了返回的html似乎不想显示。下面的代码有问题吗

    success: function(data){
        jQuery('#response').empty();
        var response = jQuery(data).find('#response').html();
        jQuery('#response').hide().html(response).fadeIn();
        jQuery('#loading').remove();
    }

uvhclan.com是呼叫的同一域吗?如果不是,你不能打电话,因为

如果是同一个域,则错误将导致页面提交,而不是取消提交。查看JavaScript控制台,看看是否有错误

这可能是因为“#userbar”在DOM中还不可用。脚本是否嵌套在document.ready事件中?像这样:

jQuery(document).ready(function() {
    var username...
});
或者,快捷方式:

jQuery(function() {
    var username...
});
$(function() {
    var username...
});
或者超级快捷方式:

jQuery(function() {
    var username...
});
$(function() {
    var username...
});

我修复了它,它是
var response=jQuery(data).find('#response').html()
我找错了div。

您是否在
$(文档)中绑定提交处理程序。准备好了吗(