top:$elem.position().top報錯Uncaught TypeError:Cannot read property 'top'of null 是什么原因?
var getValue=function(className){
$elem=$(''+className+'');
return {height:$elem.height(),
? ? ? ?top:$elem.position().top};
};
top:$elem.position().top報錯Uncaught TypeError:Cannot read property 'top'of null 是什么原因?
2019-07-14
position(top)試試
2017-06-21
你的QiXi.js文件的位置不對,或者沒有加$(function(){})
2016-11-03
top后的第一個}是return的,下面一個}是function的
2016-11-03
很明顯的錯誤
2016-10-26
試過了,還是報同樣的錯誤!能否幫忙回答錯在哪里?謝謝
2016-10-26
加個window.onload