After you add a data, if div box is full, for a better experience, you need to move the scroll bar in the end section.
var scrollHeight = $ ( 'ID or class') prop ( "the scrollHeight");.
$ ( 'ID or class') scrollTop (scrollHeight, 200 ).;
The scroll bar in the end section
Guess you like
Origin www.cnblogs.com/hukuangjie/p/11698313.html
Ranking