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

The demo gives an error #20

Closed
chinesedfan opened this issue May 7, 2018 · 5 comments
Closed

The demo gives an error #20

chinesedfan opened this issue May 7, 2018 · 5 comments

Comments

@chinesedfan
Copy link

Demo examples > scroll > vue: https://jsplayground.taobao.org/vueplayground/ca7bef18-ce30-4e00-9a41-746b8646348b.

Is it working in progress or did I miss something?

VM2771 about:srcdoc:52 执行代码错误 Script error.
window.onerror @ VM2771 about:srcdoc:52
x @ index.min.js:1
E @ index.min.js:1
N @ index.min.js:1
O.r._scrollHandler @ index.min.js:1
(anonymous) @ vue.min.js:6
te @ vue.min.js:6
error (async)
(anonymous) @ VM2771 about:srcdoc:51
VM2773:5705 Uncaught TypeError: _vm.onappear is not a function
    at appear (eval at window.evalCode (VM2771 about:srcdoc:7), <anonymous>:5705:36)
    at t (vue.min.js:6)
    at HTMLElement.e._withTask.e._withTask (vue.min.js:6)
    at x (index.min.js:1)
    at E (index.min.js:1)
    at N (index.min.js:1)
    at a.O.r._scrollHandler (index.min.js:1)
    at Array.<anonymous> (vue.min.js:6)
    at te (vue.min.js:6)
@Rowandjj
Copy link
Contributor

Rowandjj commented May 7, 2018

@chinesedfan hi there, the demo just works fine in my phone. Please provide more details about your environment such as device model(android/iOS), bindingx/weex version...

@chinesedfan
Copy link
Author

@Rowandjj The weex page is correct. But the web page is not.

I just open a Chrome tab to visit the link and got the above error in the console.

@Rowandjj
Copy link
Contributor

Rowandjj commented May 8, 2018

@chinesedfan well, I see. It's a copy-paste mistake :(
the onappear method is declared but not implemented...
I have fixed that:

https://jsplayground.taobao.org/vueplayground/0fe39539-f08c-4be0-a589-499be32f6351

@chinesedfan
Copy link
Author

@Rowandjj Great! Please update the link in README.md and close this issue.

@Rowandjj
Copy link
Contributor

Rowandjj commented May 8, 2018

done.
thanks very much:)

@Rowandjj Rowandjj closed this as completed May 8, 2018
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