如何解决按钮报错,Component "pages/a/a" does not ha?

发布于 6 年前作者 lei715047 次浏览最后编辑 6 年前来自 issues

VM309:1 Component “pages/a/a” does not have a method “a” to handle event “tap”.

源代码如下:<view class="fl aside">

<view class="aside-item {{item.isActive ? 'active' : ''}}wx:for="{{asideData}}wx:key="indexdata-active="{{item.isActive}}data-index="{{index}}bindtap="a">{{item.title}}</view>

1 回复
qiaojing
qiaojing1 楼5 年前

你好,是对应的js文件没有定义这个方法