开发者社区> 问答> 正文

Vue中V-on的代码是什么呢?

Vue中V-on的代码是什么呢?

展开
收起
游客r3yctwty2duzw 2022-08-11 21:22:54 340 0
1 条回答
写回答
取消 提交回答
  • 代码如下

    -on Shorthand
    
    Vue
    
    <!-- full syntax
    
    <a v-on:click-"doSomething">
    date
    
    mechald
    
    </ a>
    
    <!-= Shorthand -->
    
    ‹a @click="doSomething">.
    .. (/›
    
    <1-- shorthand with dynamic argument (2.6.0+) -->
    
    ‹a @[event]="doSomething">.
    </a›
    
    2022-08-12 08:31:25
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Vue.js 在前端服务化上的探索与实践 立即下载
利用编译将 Vue 组件转成 React 组件 立即下载
Vue.js在前端服务化上的实践与探索 立即下载