【发布时间】:2011-10-09 11:12:27
【问题描述】:
为什么在点击后这段代码不显示(或不加载)mysite.html?
$('#icon a').click(function (event) {
event.preventDefault();
$('.table_show, #num_count, #select_box, #input_search').fadeOut('slow', function () {
$.ajax({
url: url,
cache: false,
success: function(html){
$(".results").append(html);
$(this).hide().show();
//$.getScript("http://localhost/Siran-mehdi/files/js/admin.js");
}
});
//.hide().show("slow")
});
});
【问题讨论】:
-
什么是网址?如果不是同源,则不会加载
-
可能是一百种不同的原因中的任何一种。你有任何错误吗?
标签: javascript jquery jquery-selectors