uni-app给子组件添加@click不生效 抛瓦羊 2023-01-06 737 阅读1分钟 最近开始使用uni-app,于是开始记录遇到的问题 给子组件添加点击事件不起作用 <children @click="toPath('music/song')"/> 于是查资料发现需要添加 .native @click.native="toPath('music/song')" 官网解释说想要给根元素添加点击事件就必须添加 .native修饰符, 普通html标签无法使用