extends base.pug
block scripts
script(src='/static/index.js')
block style
style
include ../static/style.css
include ../static/styleContact.css
block content
div.container
h1 Contact Us
form(action='/contact', method= "post", class= "myForm")
input(type="text" class= “name” name="name" placeholder="Enter your name")
input(type="phone" class= “myInput” name="phone" placeholder="Enter your name")
input(type="email" class= “myInput” name="email" placeholder="Enter your email")
input(type="text" name="firstname" placeholder="Your name")
button(class="btn")
| Submit此错误显示在我的铬中
错误: E:\Web设计和开发\4 javascript\post网站75\views\contact.pug:15:34 13\ h1联系我们14收表格(action=‘/ Contact’,method= "post",class= "myForm")
15输入(type=“文本”class=名称“name=”名称“placeholder=”输入您的名字)(您的电子邮件“)18\x输入(type=”文本“name=”大名“placeholder=”您的名字)
语法错误: makeError处的意外字符“”(E:\ website & development\4 javascript\node网站75\node_modules\pug-error\index.js:34:13) Lexer.error (E:\Web设计和开发\4 javascript\node网站75\node_node\pug-lexer\index.js:62:15)位于Lexer.assertExpression (E:\Web设计和开发\4 javascript\node_modules\pug-lexer\index.js:96:12),位于Lexer.attributeValue (E:\Web设计与开发):\Web设计和开发\4 javascript\node网站75\node_modules\pug-lexer\index.js:1428:10)在Lexer.attribute (E:\Web设计和开发\4 javascript\node网站75\node_modules\pug-lexer\index.js:1275:30)在Lexer.attrs (E:\Web设计和开发\4 javascript\node网站75\node模块\pug-lexer\index.js:1454:20)在Lexer.callLexerFunction (E:\Web设计和开发\4 javascript\node网站):Lexer.callLexerFunction(E:\Web设计和开发\454:20)75\node_modules\pug-lexer\index.js:1647:23)在Lexer.advance (E:\Web设计和开发\4 javascript\node网站75\node_node\pug-lexer\index.js:1686:12)在Lexer.callLexerFunction (E:\Web设计和开发\4 javascript\node网站75\node\pug\lexer\index.js:1647:23)在Lexer.getTokens (E:\Web设计和开发\4 javascript\node模块\pug-index.js\pug:1706:12)
发布于 2021-07-02 19:42:45
问题在于您的引号字符:“name”看起来可能有效,但您需要" (ASCII 22),而不是“ (ASCII E2)。"0xe2“是非法的HTML。
https://stackoverflow.com/questions/68230511
复制相似问题