0
有人可以告訴我爲什麼我得到致命的 Cannot read property 'clientWidth' of undefined
當我嘗試使用Motio的jQuery動畫?clientWidth undefined with Javascript + motio.js
這是我的文件http://twitt.ch/clouds/
的代碼是從工作平移演示取自http://darsa.in/motio/
有人可以告訴我爲什麼我得到致命的 Cannot read property 'clientWidth' of undefined
當我嘗試使用Motio的jQuery動畫?clientWidth undefined with Javascript + motio.js
這是我的文件http://twitt.ch/clouds/
的代碼是從工作平移演示取自http://darsa.in/motio/
你需要改變:
var $example = $('#panning .example');
var frame = $example.find('.example')[0];
到:
var $example = $('#panning .example');
var frame = $example.find('.frame:eq(0)');