判断div中存在滑条

const homePage = document.getElementById('leader-home-page')
if ((homePage.scrollHeight > homePage.clientHeight || homePage.offsetHeight > homePage.clientHeight)) {
	this.showScroll = false
} else {
	this.showScroll = true
}
©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页