SOURCE

console 命令行工具 X clear

                    
>
console
<html>
   <head>
      <title>VueJs 在线编辑器</title>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.3/vue.min.js">
      </script>
      <style>
            video{
                width:90px;
            }
        </style>
   </head>
   <body>
      <div id = "intro" style = "text-align:center;">
         <h5> 在created中修改url;但是视图不会刷新</h5>
        <video  autoplay  ref="video"  >
          <source :src="url"/>
        </video>
      </div>
      <script type = "text/javascript">
         var vue_det = new Vue({
            el: '#intro',
            data: {
               message: '我的第一个VueJS任务',
               url:'https://mp4.vjshi.com/2020-11-09/46c4dcf5b37c4f79aa2575612d7ba15c.mp4'
            },
              created() {
                  setTimeout(()=>{
                    this.url = 'https://mp4.vjshi.com/2019-08-15/e756e0a4cf3224652c14a3693e8fd2ea.mp4'
                    console.log('修改url ',this.url)
                  },5000)

              }
         });
      </script>
   </body>
</html>