📜  jquery scrollHeight - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:01.647000             🧑  作者: Mango

代码示例4
$('#leave-reason-input').keyup(function() {
        var height = $(this).scrollTop();
        var initHeight = 5;
    if(initHeight < height ) {
          $(this).css({'height':'8rem'});
    }
})