在componentDidUpdate中获取目标dom,使dom.scrollTop = dom.scrollHeight 转载于:https://www.cnblogs.com/lyraLee/p/10821060.html