gpt4 book ai didi

pug - Jade - Jade 文件第 x 行的文本前缺少空格

转载 作者:行者123 更新时间:2023-12-03 07:54:25 26 4
gpt4 key购买 nike

我正在制作一个基于 Express 的 Web 应用程序,每次有人访问这个 jade 文件时,我都会收到以下错误:

Warning: missing space before text for line 28 of jade file "C:\x\app\view
s\login.jade"

它还会为它发生的每一行吐出几次。

我看了看这些行,我无法弄清楚它在提示什么。

我的 Jade 文件如下:
doctype html
html
head
meta(charset='utf-8')
link(href='style.css', rel='stylesheet')
body
.wrapper
header.header
a(href="/", style="color: #000000;")
h1(style="position: absolute; top: 30px;") Hello
.middle
.container
main.stream
p Login
main.name
form(id="login", method="POST", action="/login")
table(cellspacing="15")
tr
td Email
td
input(type='email', name='email' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;")
tr
td Password
td
input(type='password', name='password' style="width: 250; height: 18px; border: 1px solid #999999; padding: 5px;")
tr
td
input(style="width:75px;height:30px;", type="submit", value="Login")

aside.left-sidebar
main.dir
a(href="/") Home
main.dir
a(href="/signup") Register
footer.footer
h3 Hello
p This is a footer

最佳答案

Jade 用|当仅以文本开头时

错误->

td
{{anything}}
br
Hello

正确 ->
td
| {{anything}}
br
| Hello

关于pug - Jade - Jade 文件第 x 行的文本前缺少空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22181813/

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