为什么在js中我写了gotoSuccess的函数以后,绑定tap事件,点击还是无法触发tap事件,好生气啊。
为什么在js中我写了gotoSuccess的函数以后,绑定tap事件,点击还是无法触发?Why after I write the gotoSuccess function in js, the tap event is bound, but the click still fails to trigger?
为什么在js中我写了gotoSuccess的函数以后,绑定tap事件,点击还是无法触发?为什么在js中我写了gotoSuccess的函数以后,绑定tap事件,点击还是无法触发tap事件,好生气啊。
Why do I bind the tap event after I write the gotosuccess function in JS, and the tap event cannot be triggered by clicking? I'm so angry.
回答:
函数式写,不需要methods对象,不和vue混淆
小程序事件不写在methods里面
methods?????不需要