直接上代码
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>moxia123</title>
<script type="text/javascript" src="./lib/vue.js" />
</head>
<body>
<div id="demo">
<div id="app">
baidu:<input type="text" />
{
{
search_key}}
</div>
</div>
</body>
<script type="text/javascript">
var vm = new Vue({
el:'#app',
data:{
search_key:'123'
}
})
</script>
</html>
正常来说