$(function () {
$("#当前id").click(function () {
$("html, body").animate({
scrollTop: $("跳转到的id或class").offset().top
}, {
duration: 500, // 过渡时间
easing: "swing"
})
})
$(function () {
$("#当前id").click(function () {
$("html, body").animate({
scrollTop: $("跳转到的id或class").offset().top
}, {
duration: 500, // 过渡时间
easing: "swing"
})
})