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

avalon 手机上 onReady 只触发一次(pc上没问题) #1709

Closed
noman798 opened this issue Aug 26, 2016 · 6 comments
Closed

avalon 手机上 onReady 只触发一次(pc上没问题) #1709

noman798 opened this issue Aug 26, 2016 · 6 comments

Comments

@noman798
Copy link

noman798 commented Aug 26, 2016

演示页面 http://output.jsbin.com/vojuze

PC上点击计数器会累加,如下图1
image

手机微信上不管点多少次,始终是1、2,如图2
1162165913

有点类似这个人的提问
【求助】avalon2 调用组件在ms-html显示,能不能重复使用onReady?
https://segmentfault.com/q/1010000006241353

@noman798
Copy link
Author

我是在onDispose的时候,删除的vmodel上id对应的对象,但是在手机微信浏览器上,貌似这样做并没有清理干净

@RubyLouvre
Copy link
Owner

什么版本啊

@noman798
Copy link
Author

@RubyLouvre http://o8o3padwl.bkt.clouddn.com/avalon.modern.2.113.js
/*!

  • built in 2016-8-26:14 version 2.113 by 司徒正美
  • 2.1.5 and npm 2.1.15

@RubyLouvre
Copy link
Owner

div.addEventListener("DOMNodeRemovedFromDocument", function () {
      console.log("ddd")
    })

微信X5 支持这事件吗?

@RubyLouvre
Copy link
Owner

那你从主干上拉一下吧。

如果微信真的这么不堪,那么

dispose.compact.js与dispose.modern就没有必要区分。它们都合并成一个。

@noman798
Copy link
Author

@RubyLouvre 囧,标准版本可以,modern不可以,太囧了。

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