index.jade undefined 錯誤
extends?../layout block?content ??.container ????.row ??????each?item?in?movies ????????.col-md-2 ??????????.thumbnail ????????????a(href="movie/#{item._id}") ??????????????img(src="#{item.poster}",alt="#{item.title}") ????????????.caption ??????????????h3?#{title} ??????????????p:?a.btn.btn-primary(href="/movie/#{item._id}",role="button") ????????????????觀看影片
each item in movies
不知道是哪里出了錯誤
可以出來頁面,但是沒有bootstrap 格式
<link?href="/bower_components/bootstrap/dist/css/bootstrap.min.css"?rel="stylesheet"/> <script?src="/bower_components/jquery/dist/jquery.js"></script> <script?src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
bower文件夾安裝與view同級,這 樣引用對嗎
2016-07-07
movies 是數組哈,你看看自己的代碼是不是少了【】了 ,在app.js里面。
目錄的話
地址和老師的一致