DOCTYPE html> return { , methods:{ add(){
<html>
<head>
<meta charset="UTF-8">
<title>title>
head>
<body>
//1.绑定dom内容
{{name}}
//2.绑定dom标签属性
百度
//绑定函数
<script>
new Vue({
data(){
name:'tom',
age:18,
location:'www.baidu.com'
}
}
alert("添加数据");
}
}
});
script>
body>
html>