📅  最后修改于: 2022-03-11 14:57:00.229000             🧑  作者: Mango
var objPixelScrollIntoView = $('#myObjToScrollIntoView')[0].offsetTop;
$('#myDivSetWith_mCustomScrollbar').mCustomScrollbar("scrollTo", objPixelScrollIntoView);