function scroTo(e) { var t=$(e).attr('data-cate'); var obj = $('#'+t).first(); $("html, body").animate({ scrollTop: obj.offset().top -45+ "px" }, { duration: 500, easing: "swing" }); }
Powered by: 博客园 Copyright © 2024 E_T Powered by .NET 9.0 on Kubernetes