$(function(){ var next_button = $(".next-button"); //初始化左右箭头 var previous_button = $(".previous-button"); setArrows(); });