Home  >  Q&A  >  body text

javascript - load method refreshes scroll bar disorderly

I used load to introduce two public styles (head and tail), and then used ajax to obtain local json data from the middle part of the page and load some content images,

The results are refreshed from the ajax content. Each time the page is refreshed, the scroll bar scrolls down a little

Refresh from below the ajax content. Every time you refresh the page, it will jump to the top of the ajax content

I don’t know why the scroll bar won’t jump when I refresh it on my deskmate’s computer
It’s fine if I open the console and refresh it.
It was OK to refresh yesterday but not today!

I am using Google Chrome.
Is it a problem with my computer? Please tell me how to solve it! ! ! ! ! So sad! ! !

学习ing学习ing2662 days ago831

reply all(1)I'll reply

  • 扔个三星炸死你

    扔个三星炸死你2017-07-05 10:52:21

    Is it that when you have no content, your page is less than one screen? You can try to access ajax without clearing the original data. When the data comes back, clear it again when assigning it

    reply
    0
  • Cancelreply