监听input事件,而后将textarea的style.height设置为最低高度(19px),进而获取到元素的scrollHeight,而后将scroolHeight设置为style.height事件