一、代码
<!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>初始Vue</title> <!--引用Vue包--> <script type="text/javascript" src="../js/vue.js"></script> </head> <body> <!-- 容器 --> <div id="test"> <h1>Hello {{name}}</h1> </div> <script type="text/javascript"> // 实例化Vue对象 new Vue({ el:"#test", data:{ name: "World" } }) </script> </body> </html>
二、Vue插件
标签:插件,Vue,name,案例,World,Hello From: https://www.cnblogs.com/wt7018/p/18634600