Mini Program template event binding js reference invalidated

clipboard.png

projectForm templatepage({})
clipboard.png

projectReady
clipboard.png


clipboard.png


I also have binding events in template, but the practice is different from yours, except that I bindtap in wxml in temlate and define the event method in the referenced module js, so I can be in use. Hope to help you; in addition, would like to ask, have you used Baidu map in react, I have a problem when using it, if you have used it, please help to point out one or two, thank you! Address: https://codeshelper.com/q/10.


my practice is the same as above. It's all bindtap events in wxml in template. Then implement the bindtap event in the js file that references the component.

Menu