我在使用magicZoom时遇到了麻烦。当我快速更改已激活magicZoom的2张图片时,magicZoom库在控制台中显示:
Uncaught TypeError: Cannot read property 'width' of null
at d.eval (eval at <anonymous> (magiczoom.min.js:11), <anonymous>:1:84962)
at Function.eval (eval at <anonymous> (magiczoom.min.js:11), <anonymous>:1:4601)
at eval (eval at <anonymous> (magiczoom.min.js:11), <anonymous>:1:4880)
它可以正常工作,但是如何防止日志中的这些错误?你对此有什么想法吗?谢谢!
发布于 2017-03-21 13:22:38
若要回答这一问题,请提供以下资料:
3月22日更新:
根据额外资料:
如果你张贴你的网页的网址,我们可以提供额外的建议。如果你不能公开发布实时网址,你应该通过安全接触表把它发送到魔法工具箱。
https://stackoverflow.com/questions/42908017
复制相似问题