【发布时间】:2019-01-24 14:45:35
【问题描述】:
不确定添加脚本标记失败还是因为 jquery 库。但是当我将 jquery 脚本标记添加到我的 pug 文件时它失败了。没有脚本标签也能完美运行。
html
head
title !{comp}
link(rel='stylesheet', href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css')
script(src='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js')
body
table
tr
th Session
th Num.
th Couple
th Age
th Division
th Dance Studio
th Heat
each event in events
tr
td=event.Session
td=event.CoupleID
td=event.Couple
td=event.Age
td=event.Division
td=event.DanceStudio
td=event.Heat
我在添加 jquery 脚本标签后发现 404 未找到,我不知道为什么。
任何帮助将不胜感激!
【问题讨论】:
-
你的文件真的是这样缩进的吗?如果是这样,则脚本标签需要缩进与其正上方的链接标签完全相同的深度。这会导致你的错误。
-
我已经投票结束这个问题,因为它是由于“简单的印刷错误”,其他人很难复制这个问题,并且对未来的用户几乎没有价值。