課程
/前端開發
/Vue.js
/vue2.5入門
本章源碼在哪里?
2018-05-12
源自:vue2.5入門 3-1
正在回答
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script type="text/javascript" src="{{url_for('static', filename='vue/vue.min.js')}}"></script>
</head>
<body>
<div id="root">
<input v-model="inputValue"/>
<button @click="handelClick">提交</button>
<ul>
<li v-for="(item,index) of list" :key="index">{{item}}</li>
</ul>
</div>
<script>
new Vue({
el:"#root",
data:{
inputValue:"",
list:[],
},
methods:{
handelClick:function() {
this.list.push(this.inputValue)
}
})
</script>
</body>
</html>
https://github.com/cbat01/Vue2.5你里面的代碼和我的一樣在瀏覽器上顯示時錯誤的
這個課程所有的源代碼 https://github.com/cbat01/Vue2.5
評論里就有,有一個人每一節都在下面刷他的github,去那找就行了
舉報
快速理解Vue編程理念上手Vue2.0開發。
1 回答請問源碼在哪里
1 回答請問項目的源碼在哪里呢
4 回答代碼在哪里找呢?
1 回答源碼在gitee有嗎
4 回答方法定義在哪里
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-10-07
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script type="text/javascript" src="{{url_for('static', filename='vue/vue.min.js')}}"></script>
</head>
<body>
<div id="root">
<input v-model="inputValue"/>
<button @click="handelClick">提交</button>
<ul>
<li v-for="(item,index) of list" :key="index">{{item}}</li>
</ul>
</div>
<script>
new Vue({
el:"#root",
data:{
inputValue:"",
list:[],
},
methods:{
handelClick:function() {
this.list.push(this.inputValue)
}
}
})
</script>
</body>
</html>
2018-06-12
https://github.com/cbat01/Vue2.5你里面的代碼和我的一樣在瀏覽器上顯示時錯誤的
2018-06-05
這個課程所有的源代碼 https://github.com/cbat01/Vue2.5
2018-05-12
評論里就有,有一個人每一節都在下面刷他的github,去那找就行了