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

小程序的双线程带来了什么 #179

Open
lovelmh13 opened this issue Dec 24, 2022 · 0 comments
Open

小程序的双线程带来了什么 #179

lovelmh13 opened this issue Dec 24, 2022 · 0 comments

Comments

@lovelmh13
Copy link
Owner

简单记录:
小程序的双线程把 js 和 视图分开了
js -> js core
视图 -> webview

因为是双线程,所以导致了 js 不能直接操作 dom,需要彼此通信,由此才会有 setData 这么个流程

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

1 participant