为什么在js中我写了gotoSuccess的函数以后,绑定tap事件,点击还是无法触发?

小程序 文章 2022-04-08 09:40 326 0 全屏看文

AI助手支持GPT4.0

为什么在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?????不需要

嘿嘿:

函数式写,不需要methods对象,不和vue混淆

武曲心:

小程序事件不写在methods里面

-EOF-

AI助手支持GPT4.0