@tap="changeCategory ({{category.id}})"在 vscode 下提示语法错误?
<view @tap="changeCategory({{ category.id }})" class="weui-cell weui-cell_access {{ currentCategory.id == category.id ? 'category-list__item_selected' : '' }}">
<view class="weui-cell__bd">{{ category.name }}</view>
@tap="changeCategory({{category.id}})"在vscode下提示语法错误,
[eslint-plugin-vue]
[vue/valid-v-on]
'v-on' directives require that attribute value or verb modifiers.
推荐文章: