<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>vue基础</title> <script src="vue.js"></script> </head> <body> <div id="example"> <h1>{{msg}}</h1> </div> <script> var app = new Vue({ el : '#example', data : { msg : 'hello world', } }) </script> </body> </html>{{msg}} 中会显示 hello world
Vue基础学习1 入门
猜你喜欢
转载自blog.csdn.net/t1753867136/article/details/80192295
今日推荐
周排行