-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zepto.js 使用时 $(window).width()运行报错 #40
Comments
收到,我来复现一下哈 |
我是通过 script 标签加载 umd 包直接引入的 |
定位到是 Zepto.js 引入的问题 |
有什么解决方案吗? |
这个地方能否打个断点,查看一下this、r 之类的变量具体是什么 |
已经查明问题:
function isWindow(obj) { return obj != null && obj == obj.window }
function isDocument(obj) { return obj != null && obj.nodeType == obj.DOCUMENT_NODE }
|
yiludege
changed the title
Cannot read property 'scrollWidth' of undefined
zepto.js 使用时 $(window).width()运行报错
Aug 13, 2022
注意到 zepto.js 直接使用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
代码在内网,不方便导出
初步排查报错的代码是 clappr 这个视频播放包
大佬们,有解决方案吗?
The text was updated successfully, but these errors were encountered: