<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        [v-cloak]{
            display: none;
        }
    </style>
</head>
<body>
    <div id="app">
        <h1 v-cloak>{{msg}}</h1>
    </div>
    <script src="js/vue.3.2.2.js"></script>
    <script>
       setTimeout(()=>{
           const app = Vue.createApp({
               data(){//定义数据
                   return {
                       msg:'你好!'
                   }
               }
           }).mount('#app');
       },1000);
    </script>
</body>
</html>

 

相关文章:

  • 2022-02-09
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-06-07
  • 2021-10-26
相关资源
相似解决方案