ajax局部刷新后在用ajax刷新回原页面,切换里的JQ点击事件失效了?
$(document).on('click','#qqqqqq',function(){dasdsa=$.ajax({type:"GET",//默认geturl:'qqq...
$(document).on('click', '#qqqqqq', function () {
dasdsa = $.ajax({
type: "GET", //默认get
url: 'qqqqqq.text', //默认当前页
success: function (response) { //请求成功回调
$('.zuo').html(response)
console.log(response)
},
error: function (e) { //请求超时回调
console.log(e)
}
});
})
$("#q").click(function () {
$(".zuo-shan-zuo-xia img").css("display", "none");
$(".qq").css("display", "block");
$(".zuo-xia div").css("display", "none")
$(".zq").css("display", "block")
}) 展开
dasdsa = $.ajax({
type: "GET", //默认get
url: 'qqqqqq.text', //默认当前页
success: function (response) { //请求成功回调
$('.zuo').html(response)
console.log(response)
},
error: function (e) { //请求超时回调
console.log(e)
}
});
})
$("#q").click(function () {
$(".zuo-shan-zuo-xia img").css("display", "none");
$(".qq").css("display", "block");
$(".zuo-xia div").css("display", "none")
$(".zq").css("display", "block")
}) 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询