我试图进行计算,但我不断收到错误 NaN;你能帮我弄清楚如何为 var testBottom 做数学吗?
jQuery(document).ready(function(){
var test = jQuery("#test");
var testTopOffset = test.offset();
var testTop = testTopOffset;
var testHeight = test.height();
var testBottom = parseInt(testTop + testHeight);
alert(testHeight);
alert(testBottom);
});