gpt4 book ai didi

javascript - 使用 Jade 时出现意外文本错误

转载 作者:搜寻专家 更新时间:2023-10-31 22:56:26 25 4
gpt4 key购买 nike

这是我的 jade 模板中的错误:

     Error: E:\Do\hello_express\node_notes\views\simple.jade:6
4| meta(charset="utf-8")
5| meta(name="viewport",content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no")
> 6| meta(http-equiv="X-UA-Compatible",content="IE=edge")
7| title= #{title}
8| link(rel='stylesheet',href='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css')
9| link(rel='stylesheet',href='stylesheets/notes.css')

unexpected text
t

我的模板是这样的:

html
head
meta(charset="utf-8")
meta(name="viewport",content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no")
meta(http-equiv="X-UA-Compatible",content="IE=edge")
title= #{title}
link(rel='stylesheet',href='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css')
link(rel='stylesheet',href='stylesheets/notes.css')
script(type='text/javascript',src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js')
script(type='text/javascript',src='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js')
body
block content

最佳答案

此错误是由于行尾的空格字符造成的。

关于javascript - 使用 Jade 时出现意外文本错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24870283/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com