将textarea滚动至底部: var textarea = document.getElementById('id');textarea.scrollTop = textarea.scrollHeight;