why Composables 's return must be value | 为什么在组合式函数中必须要返回他的 value #8069
Unanswered
Bell-see
asked this question in
Help/Questions
Replies: 1 comment
-
onMounted 时 addEventListener('mousenove, update)) update事件被添加到了窗口 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am Chinese and my English is worse. So understand me, pls.
I am freshman in Vue3. In during my learning process, I found that there will be returns {x, y} in Composables.
Why does a referenced function return its value instead of its function? Since it did not return a method, how did he call his method after importing it?
eg.
我刚刚学完 Vue3,在我学习的过程中,我发现在 Composables 中会有 return {x,y} 。

为什么在引用的函数中会返回他的 value 而不返回他的 function ?既然他没有返回方法,在 import 了之后又是怎么调用到他的方法的?
官网例子
Beta Was this translation helpful? Give feedback.
All reactions