天天看點

bug: Uncaught RangeError: Maximum call stack size exceeded

<template>
  <div id="app">
     <hello-world class="baz"></hello-world>
  </div>
</template>


<script>
export default {
  name: 'HelloWorld',
  template: `
      <p :class="$attrs.class">Hi!</p>
      <span>This is a child component</span>
  `
  
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>

           

為什麼呢

繼續閱讀