Day1.1Vue basic format

<! DOCTYPE HTML> 
<HTML lang = "EN">
<head>
<Meta charset = "UTF-. 8">
<title> vue basic format </ title>
<- Step:! Vue introduced packages - >
<Script the src = "../ lib / JS / vue.js"> </ Script>
</ head>
<body>
<-! vue future instances of the new, this will control all elements ->
<-! Vue this instance the control element area is our MVVM in V ->
<div ID = 'App'>
<h1 of> MSG {{}} </ h1 of>
</ div>

<Script>
/ / Step 2: Create a vue instance
// new objects out of the vm, is the VM scheduler MVVM
const = vm new new Vue ({
EL: '# App',// this indicates that the current of our new vue example, to control the area of the page
// data here is MVVM in M (model), designed to save data for each page of
data: {// data attribute, storage It is to use the data in el
msg: 'Welcome to the Vue' // instructions provided by vue, it is convenient to be able to render the page data
}
})
</ Script>

</ body>
</ HTML>

Guess you like

Origin www.cnblogs.com/zhaohui-116/p/12007208.html