SOURCE

console 命令行工具 X clear

                    
>
console
new Vue({
  el: '#app',
  data: {
    dataList: [],
    cloudUrl: 'http://cloud.fe.i200.cn/cloud/5ae309f48a5639f5d6cae15a/pc/laoban/warmup'
  },
  mounted() {
    this.load()
  },
  methods: {
    load: function() {
      axios.get(this.cloudUrl).then(res => {
        let data = res.data;
        this.dataList = data.map(item => item.imgSrc);
      })
    }
  }
})
<style>
  img{ display:block; width:400px; }
</style>
<div id="app">
  <img :src="item" v-for="item in dataList" @click="alert(item)" />
</div>

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