vue.js代码003

时间:2023-02-25 11:58:20


t003.html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>t002</title>
<script type="text/javascript" src="../js/vue.js"></script>
</head>
<body>
<div >
<h1>Hello,{{name}},{{address}}</h1>
</div>

<script type="text/javascript">
Vue.config.productionTip = false;

new Vue({
el:'#root',
data:{
name:'虾米'
}
});

new Vue({
el:'#root',
data:{
address:'甘肃'
}
});

</script>
</body>
</html>