SOURCE

console 命令行工具 X clear

                    
>
console
var app = new Vue({
  el: '#app',
  data: {
    message: 'Hello Vue!',
    arr:[
        {
            text:2323,
        },
    ],
    list:[],
    flag:false
  },
  mounted (){
      setTimeout(()=>{
          this.arr[0].age = 999999;
          console.log(this.arr);
          this.list.push(1);
      },2000);

  },
  computed: {
      check(){
          return (num)=>{
            console.log('checked');
            return this.list.includes(num);
          }
      },
      isInside(){
          console.log('isInside');
          return this.list.includes(1);
      }
  },
  methods:{
      click(){
          this.flag = !this.flag;
      },
      
  }
})
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
      {{message}}
      <div v-for="iterm in arr">
          {{iterm.text}}
          {{iterm.age}}
      </div>
      <h2 @click="click">dian</h2>
      <div class="test" v-if="isInside" v-show="flag">test</div>
  </div>
</body>
</html>

本项目引用的自定义外部资源