当前位置:网站首页>Simple use of devtools

Simple use of devtools

2022-07-05 02:44:00 13 less

One .Devtools effect

  It is convenient for us to observe the data written by ourselves and the status of components in real time .

Two . install

Minimalist plug-ins _Chrome Extension store _ High quality crx application

 

 

 

<template>
  <div class=""></div>
</template>

<script>
export default {
  data() {
    return {
      name:' wuhu ',  // Single data 
      arr:[
        {
          a:1,
          b:2
        }
      ],
    }
  },
  name: '',
  methods: {
  }
}
</script>

<style scoped>

</style>

  Find the plug-in After downloading and playing

  Open Google browser --------> More programs ----------> add-in ------------> Just drag the downloaded one in .

3、 ... and . Use

Code 1:

<template>
  <div class=""></div>
</template>

<script>
export default {
  data() {
    return {
      name:' wuhu ',  // Single data 
      arr:[
        {
          a:1,
          b:2
        }
      ],
    }
  },
  name: '',
  methods: {
  }
}
</script>

<style scoped>

</style>

Code :

<template>
  <div class=""></div>
</template>

<script>
export default {
  data() {
    return {
      one:'one',
      arr:[1,2,3]
    }
  },
  name:'One Components ',
  methods: {
    fn(){
      console.log(123213);
    }
  }
}
</script>

<style scoped>

</style>

 

name You can give components any name , If you don't take it, it's the default name .

 

原网站

版权声明
本文为[13 less]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050241199105.html