$(function(){ let ts = null; ts = setinterval(function(){ if($('.page_con .page_a').length > 0){ clearinterval(ts) $('.page_prev').text('上一页'); $('.page_next').text('下一页'); } },200) $(document).on('click','.page_con .page_a',function(){ settimeout(function(){ $('.page_prev').text('上一页'); $('.page_next').text('下一页'); },500) }) })