Skip to content
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

Uncaught TypeError: Cannot read property 'addEventListener' of null #1

Open
chongyuan opened this issue Nov 27, 2015 · 6 comments
Open

Comments

@chongyuan
Copy link

Uncaught TypeError: Cannot read property 'addEventListener' of null
preventoverscroll.js:157

@yuanzm
Copy link
Owner

yuanzm commented Nov 27, 2015

出现这个报错说明你的节点不存在嘛

@chongyuan
Copy link
Author

谢谢您的回答;
可是我该怎么操作 preventoverscroll.js 呢?
直接引入还是需要加别的代码?

@yuanzm
Copy link
Owner

yuanzm commented Nov 27, 2015

https://github.com/yuanzm/preventoverscrolljs/blob/master/preventoverscroll.js#L134
将你需要作用的元素的放到list里面

@chongyuan
Copy link
Author

好的,我试下;谢谢您;

@chongyuan
Copy link
Author

您好,添加之后,右侧的滚动条也无法下拉了,请问是否是我哪里用的不对呢?
可是我看您二维码上面提供的页面,滚动条是可以用的;是否是我哪里操作有误呢?

@yuanzm
Copy link
Owner

yuanzm commented Nov 27, 2015

http://segmentfault.com/a/1190000003810312?_ea=472032 建议先仔细看看这文章,然后我回头写个demo,文章里面确实疏忽了demo这一块

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants