<! 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 > Document < / title > < / head > < body > < div id = 'app' > < div > {{MSG}} < / div > < / div > <! <script type='text/javascript' SRC ='.. /Vue/vue.min.js'></script> <script type='text/javascript'> var vm = new Vue({ el: '#app', data: { msg: 'Hello World' } }) </script> </body> </html>Copy the code
- El: element mount point
- Data: Model data (value is an object)
- {{}} : Interpolates data into HTML tags