换一换js

(function(){

  var tit = $("#changes"),

      con = $("#wday>ul"),

      page = con.length,
        index = 0;

      tit.click(function(){
            if(index < page){
                index++;
            }else{
                index = 0;
            }
          con.eq(index).show().siblings().hide();
      });


})();
原文地址:https://www.cnblogs.com/xupeiyu/p/3907201.html