欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

jQuery 如何得到 scrollHeight 的值

之前为了得到div的scrollHeight的值,
一直写法是这样的:
$('#box')[0].scrollHeight;
今天我知道了另外一个方法:
$('#box').prop('scrollHeight');
注意:
$('#box').arrt('scrollHeight');
这个写法是undefined值




文章标签: jqueryscrollHeight

来自  https://blog.csdn.net/hhxx999/article/details/52266896

普通分类: