jquery动态改变textarea高度,高度随着内容增加而自动变高,内容减少而自动变低
直接看jquery代码,复制过去即可使用:使用之前先注册方法jQuery.fn.extend({ autoHeight: function(){ return this.each(function(){ var $this = jQuery(this); if( !$this.attr('_initAdjustHeight') ){ $this.attr('_initAdjustHeight',
原创
2020-11-02 16:51:35 ·
923 阅读 ·
0 评论