<template> <div class="appBox">   <div class="outeer"
@click.stop="outer" style="width: 100px;height:40px;background: red;">
    <div class="middle" @click.stop="middle" style="width:
80px;height: 40px;background: blue;">
      <button
@click.stop="inner"> Click me (^_^)</button>     </div>
  </div> </div> </template> methods:{ outer(){ console.log(333333) },
middle(){ console.log(222222) }, inner(){ console.log(111111) }, } To prevent event bubbling
.stop Clicking on a child node does not capture events from the parent node . Copy code

Technology
©2020 ioDraw All rights reserved
2020 Nobel Prize in physiology or medicine announced Implementation and challenge of metadata service in data Lake Enterprises face SEM Bidding and SEO How to choose ? Or both ?spark.sql.shuffle.partitions and spark.default.parallelism The difference between JavaScript Do a simple guess number games What are the types of variables ? Trump's "VIP therapy ": Is receiving a drug treatment that has not yet been approved ( Essence )2020 year 6 month 26 day C# Class library DataTable( Extension method ) program ( process ) How is it stored in the operating system , Space allocation Understanding neural network machine translation in three minutes