id有一個雙引號
extends?../layout block?content ????.container ????????.row ????????????table.table.table-hover.table-bordered ????????????????thead ????????????????????tr ????????????????????????th?電影名稱 ????????????????????????th?導演 ????????????????????????th?國家 ????????????????????????th?上映年份 ????????????????????????th?錄入時間 ????????????????????????th?查看 ????????????????????????th?更新 ????????????????????????th?刪除 ????????????????tbody ????????????????????each?item?in?movies ????????????????????????tr(class="item-id-"?+?item._id) ????????????????????????????td?#{item.title} ????????????????????????????td?#{item.doctor} ????????????????????????????td?#{item.country} ????????????????????????????td?#{item.year} ????????????????????????????td?#{moment(item.meta.updateAt).format('MM/DD/YYYY')} ????????????????????????????td:?a(target="_blank",?href="../movie/"?+?item._id)?查看 ????????????????????????????td:?a(target="_blank",?href="../admin/update/"?+?item._id)?修改 ????????????????????????????td ????????????????????????????????button.btn.btn-danger.del(type="button",?data-id=item._id)?刪除 ????script(src="/js/admin.js")
為啥這里存儲id還有一個引號?,搞的我找了半天的錯誤..
2017-12-11
模板頁面代碼寫錯了 ?去掉雙引號 渲染出來的時候自動是帶上的