page is as follows:
  
 
 when a scroll bar appears on the page, the scrollHeight and clientHeight of the body-sharpapp. Main-container. Container element are both equal 
 how to tell that the current page has a scroll bar? 
page is as follows:
  
 
 when a scroll bar appears on the page, the scrollHeight and clientHeight of the body-sharpapp. Main-container. Container element are both equal 
 how to tell that the current page has a scroll bar? 
 get the current window height document.documentElement.clientHeight 
 get the current body height document.body.clientHeight 
if(document.body.clientHeight > document.documentElement.clientHeight){
    // 
}Previous: Dynamic components cannot be used in typescript of vue-cli3
Next: Javascript traverses to get data that meets certain levels