Novice, ask some simple event handling mechanisms of the wepy Mini Program framework

question 1. Why can the event function outside the methods object be triggered when the element triggers the event ? The strange thing is that the button button cannot trigger the event function outside the methods object. Why is that?
question 2. Why the emit event function can only trigger functions in the methods object of the parent component? Cannot trigger the event function of outside the object?
[I have read the document; but there is no detailed description. I don"t know if I didn"t look carefully.
is very tangled. Are there any great gods you meet or can you talk about the principle?

Menu